Represents a tool palette control that displays DiagramItem objects grouped into categories. Items from the palette can be added to a diagram by drag-and-drop.
The following tables list the members exposed by the Palette type.
Public Constructors| Name | Description | |
|---|---|---|
![]() |
Initializes a new instance of the Palette class. |
Public Properties| Name | Description | |
|---|---|---|
![]() |
Gets or sets the maximum distance to a node when auto connecting links. |
|
![]() |
Gets or sets whether links should be automatically connected to the nearest node. |
|
![]() |
Gets or sets the number of columns. |
|
![]() |
Gets the effective label position of the items. |
|
![]() |
Gets the list of currently expanded items. |
|
![]() |
Gets or sets a value indicating whether multiple items can be expanded. |
|
![]() |
Gets or sets the horizontal and vertical margins around the items. |
|
![]() |
Gets or sets the size of items displayed in the palette. |
|
![]() |
Gets the icon size in pixels. |
|
![]() |
Gets the list of categories displayed in the control. |
|
![]() |
Gets or sets the size of the category headers. |
|
![]() |
Gets or sets the position of the items' labels. |
|
![]() |
Gets or sets the unit of measure used when drawing items. |
|
![]() |
Gets or sets the default size with which items dragged onto a diagram will be created. |
|
![]() |
Gets or sets the orientation of the control. |
|
![]() |
Gets or sets a list of custom style attributes to be applied to the control's DOM element. |
|
![]() |
Gets or sets the CSS theme of the control. |
Public Methods| Name | Description | |
|---|---|---|
![]() |
Adds a new category to the palette. |
|
![]() |
Adds an item to the control. |
|
![]() |
Removes all items from the palette. |
|
![]() |
Collapses the specified item. |
|
![]() |
Collapses the specified items. |
|
![]() |
Expands the specified items. |
|
![]() |
Expands the specified items. |
|
![]() |
Accordion.OnItemClicked override. |
|
![]() |
Removes a category from the control. |
|
![]() |
Removes an item from the control. |
|
![]() |
Toggles the expanded mode of the specified items. |
Protected Methods| Name | Description | |
|---|---|---|
![]() |
|
|
![]() |
|
Public Events| Name | Description | |
|---|---|---|
![]() |
Raised when an item is expanded or collapsed. |
|
![]() |
Raised when an item is being expanded or collapsed. |
See Also