Interface IToolboxControl
- Namespace
- Alternet.FormDesigner.WinForms
- Assembly
- Alternet.FormDesigner.v9.dll
Represents properties and methods to display and manage a list of icons for components and controls that user can place onto design surface.
public interface IToolboxControl
Properties
- CategoryNames
When implemented by a class, gets collection of Categories (Tabs) displayed by the toolbox
- SearchEnabled
When implemented by a class, gets or sets a value indicating whether toolbox control allows searching components by their names.
- 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.
- EditCategory(string)
When implemented by a class, starts to edit the specified category.
- EditItem()
When implemented by a class, starts to edit the currently selected item.
- 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(int, string)
When implemented by a class, inserts category in the specified position.
- InsertItem(int, 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, int)
When implemented by a class, moves category to its current position plus value specified by positionDifference parameter.
- MoveItem(string, ToolboxItem, int)
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.