2 types derived from ToolboxItem
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
17
private class AxToolboxItem :
ToolboxItem
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
17
internal class CfCodeToolboxItem :
ToolboxItem
3 instantiations of ToolboxItem
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
54
ToolboxItem toolboxItem =
new
(typeof(ToolStripContainer));
System\Windows\Forms\Design\ItemTypeToolStripMenuItem.cs (1)
14
private static readonly ToolboxItem s_invalidToolboxItem =
new
();
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
119
tbxItem = new
ToolboxItem
(itemType);
78 references to ToolboxItem
System.Windows.Forms.Design (78)
System\Drawing\Design\IToolboxService.cs (12)
43
void AddLinkedToolboxItem(
ToolboxItem
toolboxItem, IDesignerHost host);
48
void AddLinkedToolboxItem(
ToolboxItem
toolboxItem, string category, IDesignerHost host);
53
void AddToolboxItem(
ToolboxItem
toolboxItem);
58
void AddToolboxItem(
ToolboxItem
toolboxItem, string category);
63
ToolboxItem
DeserializeToolboxItem(object serializedObject);
68
ToolboxItem
DeserializeToolboxItem(object serializedObject, IDesignerHost host);
73
ToolboxItem
GetSelectedToolboxItem();
78
ToolboxItem
GetSelectedToolboxItem(IDesignerHost host);
142
void RemoveToolboxItem(
ToolboxItem
toolboxItem);
147
void RemoveToolboxItem(
ToolboxItem
toolboxItem, string category);
158
object SerializeToolboxItem(
ToolboxItem
toolboxItem);
170
void SetSelectedToolboxItem(
ToolboxItem
toolboxItem);
System\Drawing\Design\IToolboxUser.cs (2)
16
bool GetToolSupported(
ToolboxItem
tool);
22
void ToolPicked(
ToolboxItem
tool);
System\Drawing\Design\ToolboxComponentsCreatedEventHandler.cs (1)
7
/// Represents a method that will handle the <see cref="
ToolboxItem
.ComponentsCreated"/> event.
System\Drawing\Design\ToolboxComponentsCreatingEventHandler.cs (1)
7
/// Represents a method that will handle the <see cref="
ToolboxItem
.ComponentsCreating"/> event.
System\Drawing\Design\ToolboxItem.cs (8)
94
/// Gets or sets the company name for this <see cref="
ToolboxItem
"/>.
119
/// Gets or sets the display name for this <see cref="
ToolboxItem
"/>.
381
ToolboxItem
otherItem = (
ToolboxItem
)obj;
721
/// will be called when this <see cref="
ToolboxItem
"/> creates a component.
730
/// will be called before this <see cref="
ToolboxItem
"/> creates a component.
807
private readonly
ToolboxItem
_item;
808
internal LockableDictionary(
ToolboxItem
item, int capacity) : base(capacity)
System\Drawing\Design\ToolboxItemCollection.cs (11)
9
/// A collection that stores <see cref="
ToolboxItem
"/> objects.
22
/// Initializes a new instance of <see cref="ToolboxItemCollection"/> containing any array of <see cref="
ToolboxItem
"/> objects.
24
public ToolboxItemCollection(
ToolboxItem
[] value)
30
/// Represents the entry at the specified index of the <see cref="
ToolboxItem
"/>.
32
public
ToolboxItem
this[int index] => (
ToolboxItem
)InnerList[index]!;
36
/// contains the specified <see cref="
ToolboxItem
"/>.
38
public bool Contains(
ToolboxItem
value) => InnerList.Contains(value);
44
public void CopyTo(
ToolboxItem
[] array, int index)
50
/// Returns the index of a <see cref="
ToolboxItem
"/> in
53
public int IndexOf(
ToolboxItem
value) => InnerList.IndexOf(value);
System\Drawing\Design\ToolboxItemCreatorCallback.cs (1)
9
public delegate
ToolboxItem
ToolboxItemCreatorCallback(object serializedObject, string format);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
269
ToolboxItem
item = toolboxService.DeserializeToolboxItem(e.Data, host);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
54
ToolboxItem
toolboxItem = new(typeof(ToolStripContainer));
System\Windows\Forms\Design\CommandSet.cs (1)
1877
ToolboxItem
? ti = ts.DeserializeToolboxItem(dataObj, host);
System\Windows\Forms\Design\ComponentDocumentDesigner.cs (3)
88
bool IToolboxUser.GetToolSupported(
ToolboxItem
tool)
93
void IToolboxUser.ToolPicked(
ToolboxItem
tool)
127
protected virtual bool GetToolSupported(
ToolboxItem
tool)
System\Windows\Forms\Design\ComponentTray.cs (5)
55
private
ToolboxItem
_mouseDragTool; // the tool that's being dragged; only for drag/drop
743
protected virtual bool CanCreateComponentFromTool(
ToolboxItem
tool)
811
public void CreateComponentFromTool(
ToolboxItem
tool)
1059
ToolboxItem
tool = _mouseDragTool;
1219
ToolboxItem
tool = _toolboxService.GetSelectedToolboxItem((IDesignerHost)GetService(typeof(IDesignerHost)));
System\Windows\Forms\Design\DocumentDesigner.cs (7)
305
private static
ToolboxItem
CreateCfCodeToolboxItem(IDataObject dataObject)
310
return (
ToolboxItem
)serializationData;
615
protected virtual bool GetToolSupported(
ToolboxItem
tool)
1001
private
ToolboxItem
OnCreateToolboxItem(object serializedData, string format)
1320
protected virtual void ToolPicked(
ToolboxItem
tool)
1391
bool IToolboxUser.GetToolSupported(
ToolboxItem
tool)
1400
void IToolboxUser.ToolPicked(
ToolboxItem
tool)
System\Windows\Forms\Design\ItemTypeToolStripMenuItem.cs (2)
14
private static readonly
ToolboxItem
s_invalidToolboxItem = new();
53
public
ToolboxItem
ToolboxItem { get; set; } = s_invalidToolboxItem;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (2)
43
/// Saves the state of this <see cref="
ToolboxItem
"/> to the specified serialization info.
55
/// Loads the state of this <see cref="
ToolboxItem
"/> from the stream.
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
134
public IComponent[] CreateTool(
ToolboxItem
tool, Control? parent, int x, int y, int width, int height, bool hasLocation, bool hasSize)
139
public IComponent[] CreateTool(
ToolboxItem
tool, Control? parent, int x, int y, int width, int height, bool hasLocation, bool hasSize, ToolboxSnapDragDropEventArgs? e)
System\Windows\Forms\Design\ParentControlDesigner.cs (8)
24
private
ToolboxItem
_mouseDragTool; // the tool that's being dragged, if we're creating a component
284
protected
ToolboxItem
MouseDragTool => _mouseDragTool;
761
protected static void InvokeCreateTool(ParentControlDesigner toInvoke,
ToolboxItem
tool)
790
protected void CreateTool(
ToolboxItem
tool)
800
protected void CreateTool(
ToolboxItem
tool, Point location)
810
protected void CreateTool(
ToolboxItem
tool, Rectangle bounds)
820
protected virtual IComponent[] CreateToolCore(
ToolboxItem
tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)
1770
ToolboxItem
tool = _mouseDragTool;
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
160
protected override IComponent[]? CreateToolCore(
ToolboxItem
tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
117
protected override IComponent[] CreateToolCore(
ToolboxItem
tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1194
protected override IComponent[] CreateToolCore(
ToolboxItem
tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
163
protected override IComponent[]? CreateToolCore(
ToolboxItem
tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (5)
21
private static Dictionary<Type,
ToolboxItem
> t_cachedToolboxItems;
109
private static
ToolboxItem
GetCachedToolboxItem(Type itemType)
112
if (t_cachedToolboxItems.TryGetValue(itemType, out
ToolboxItem
tbxItem))
156
ToolboxItem
tbxItem = GetCachedToolboxItem(itemType);
172
ToolboxItem
tbxItem = GetCachedToolboxItem(itemType);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
165
protected override IComponent[]? CreateToolCore(
ToolboxItem
tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)