IToolboxControl Interface
Definition
Represents properties and methods to display and manipulate list of icons for components and controls that user can place onto design surface.
Syntax
public interface IToolboxControl
Properties
CategoryNames | When implemented by a class, gets collection of Categories (Tabs) displayed by the toolbox |
SearchEnabled | |
SelectedCategory | When implemented by a class, gets or sets currently selected toolbox category. |
SelectedTool | When implemented by a class, returns currently selected toolbox item. |
Methods
AddCategory(String) | When implemented by a class, adds new category to the toolbox. |
AddItem(String, ToolboxItem) | When implemented by a class, places toolbox item onto specified toolbox tab. |
AddItemForType(String, Type, CustomToolboxImage) | When implemented by a class, adds toolbox item from type name. |
AddItemsFromAssembly(String, Assembly) | When implemented by a class, add all types that can appear on the toolbox from the assembly. |
BeginUpdate() | When implemented by a class, prevents repainting of the toolbox until EndUpdate is called. |
ClearItemsInCategory(String) | When implemented by a class, clears items in the specified tab. |
DoesCategoryExist(String) | When implemented by a class, identifies whether given category exist in the IToolboxControl. |
DoesItemExist(String, ToolboxItem) | When implemented by a class, identifies whether given item exist in the specified tab. |
EndUpdate() | When implemented by a class, re-enables toolbox repainting. |
GetAllTools() | When implemented by a class, gets all toolbox items. |
GetToolsFromCategory(String) | When implemented by a class, gets toolbox items on the specified tab. |
InsertCategory(Int32, String) | When implemented by a class, inserts category in the specified position. |
InsertItem(Int32, String, ToolboxItem) | When implemented by a class, inserts item in the specified position. |
Load(Stream) | When implemented by a class, loads the toolbox content from the specified stream. |
MoveCategory(String, Int32) | When implemented by a class, moves category to its current position plus value specified by positionDifference parameter. |
MoveItem(String, ToolboxItem, Int32) | When implemented by a class, moves item to its current position plus value specified by positionDifference parameter. |
Refresh() | When implemented by a class, forces the IToolboxControl to invalidate its client area and immediately redraw itself and any child controls. |
RemoveAllCategories() | When implemented by a class, removes all categories from the toolbox control. |
RemoveCategory(String) | When implemented by a class, removes specified tab. |
RemoveItem(String, ToolboxItem) | When implemented by a class, removes toolbox item from the category. |
RenameCategory(String, String) | When implemented by a class, renames the specified category. |
Reset() | When implemented by a class, resets the toolbox content to defaults. |
Save(Stream) | When implemented by a class, saves the toolbox content to the specified stream. |
ScrollToCategory(String) | When implemented by a class, scrolls toolbox control to the specified category. |
ScrollToItem(String, ToolboxItem) | When implemented by a class, scrolls toolbox control to the specified item. |
SelectPointer() | When implemented by a class, deselects currently selected toolbox item and selects pointer tool. |
SetSelectedItem(String, ToolboxItem) | When implemented by a class, selects toolbox item. |
Events
PlaceItemAtDefaultLocation | When implemented by a class, event which is fired when user double clicks on a toolbox item. |