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