Class ToolboxContentControl
- Namespace
- Alternet.FormDesigner.WinForms.Toolbox
- Assembly
- Alternet.FormDesigner.v9.dll
Provides a container for the toolbox content which is a collection of category.
public class ToolboxContentControl : Panel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
- Inheritance
-
ToolboxContentControl
- Implements
Constructors
- ToolboxContentControl(IToolboxContentControlSite)
Initializes a new instance of the
ToolboxContentControl
class with specified site.
Properties
- AllItems
Represents an array of all toolbox items in the container.
- CategoryNames
Represents an array of category names.
- ContentControlSite
Represents an object that manipulates toolbox content.
- SelectedCategoryName
Returns name of currently selected category or selects category by it's name.
- SelectedItem
Returns currently selected toolbox item.
Methods
- AddCategory(string)
Add new category to the collection.
- AddItem(string, ToolboxItem)
Adds an item to the list of items of specified category.
- BeginUpdate()
Prevents object state updating until calling
EndUpdate
method.
- ClearItemsInCategory(string)
Removes all items from the list of items of specified category.
- DoesCategoryExist(string)
Indicates whether specified category exists.
- DoesItemExist(string, ToolboxItem)
Indicates whether specified item presents in specified category.
- DoesItemExist(string, string)
Indicates whether specified item presents in specified category.
- EditCategory(string)
Starts to edit the specified category.
- EditItem()
Starts to edit the specified item.
- EndUpdate()
Re-enables object state updating, that was turn of by calling
BeginUpdate
method.
- GetPreferredSize(Size)
Retrieves the size of a rectangular area into which a category collection can be fitted.
- GetToolsFromCategory(string)
Returns an array of
ToolboxItem
within specified category.
- InsertCategory(int, string)
Inserts new category to specified position.
- InsertItem(int, string, ToolboxItem)
Adds an item to the list of items of specified category into the specified position.
- IsCategoryCollapsed(string)
Indicates whether specified category is in collapsed state.
- MoveCategory(string, int)
Changes position of category within collection.
- OnLayout(LayoutEventArgs)
Raises the Layout event.
- OnPaint(PaintEventArgs)
Raises the Paint event.
- RemoveCategory(string)
Removes specified category from the category collection.
- RemoveItem(string, ToolboxItem)
Removes specified item from the item collection of specified category.
- RenameCategory(string, string)
Renames category.
- ScrollToCategory(string)
Scrolls control content to the specified category.
- ScrollToItem(string, ToolboxItem)
Scrolls control content to make visible specified item.
- SetCategoryCollapsed(string, bool)
Set specified category to the collapsed\expanded state.
- SetSelectedItem(string, ToolboxItem)
Selects the specified item in the item collection of specified category.