Search
Palette Members
Constructors Properties Methods Events
 


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

Palette

Initializes a new instance of the Palette class.

 Public Properties

  Name Description

AutoConnectDistance

Gets or sets the maximum distance to a node when auto connecting links.

AutoConnectLinks

Gets or sets whether links should be automatically connected to the nearest node.

Columns

Gets or sets the number of columns.

EffectiveLabelPosition

Gets the effective label position of the items.

ExpandedItems

Gets the list of currently expanded items.

ExpandMode

Gets or sets a value indicating whether multiple items can be expanded.

IconMargin

Gets or sets the horizontal and vertical margins around the items.

IconSize

Gets or sets the size of items displayed in the palette.

ItemIconSize

Gets the icon size in pixels.

Items

Gets the list of categories displayed in the control.

ItemSize

Gets or sets the size of the category headers.

LabelPosition

Gets or sets the position of the items' labels.

MeasureUnit

Gets or sets the unit of measure used when drawing items.

NewInstanceSize

Gets or sets the default size with which items dragged onto a diagram will be created.

Orientation

Gets or sets the orientation of the control.

StyleAttributes

Gets or sets a list of custom style attributes to be applied to the control's DOM element.

Theme

Gets or sets the CSS theme of the control.

 Public Methods

  Name Description

AddCategory

Adds a new category to the palette.

AddItem

Adds an item to the control.

ClearAll

Removes all items from the palette.

CollapseItem

Collapses the specified item.

CollapseItems

Collapses the specified items.

ExpandItem

Expands the specified items.

ExpandItems

Expands the specified items.

OnItemClicked

Accordion.OnItemClicked override.

RemoveCategory

Removes a category from the control.

RemoveItem

Removes an item from the control.

ToggleItem

Toggles the expanded mode of the specified items.

 Protected Methods

  Name Description

BuildRenderTree

 

OnAfterRender

 

 Public Events

  Name Description

ItemToggle

Raised when an item is expanded or collapsed.

ItemToggling

Raised when an item is being expanded or collapsed.

 See Also