Search
Palette Members
Constructors Properties Methods
 


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

columns

Gets or sets the number of columns in palette's layout.

iconSize

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

labelPosition

Gets or sets a value indicating the position of labels relative to item icons.

measureUnit

Gets or sets the unit of measure used to specify item sizes.

newInstanceSize

Gets or sets the default size of items created by drag-and-drop from this palette.

padding

Gets or sets the padding space between item's slot bounds and its contents.

textColor

Gets or sets the color used to paint item captions.

 Public Methods

  Name Description

addCategory

Adds a new category to the palette.

addItem

Adds an item to the palette.

create

Creates and initializes a new Palette from the specified element. This method is static and can be called without creating an instance of the class.

find

Returns the specified Palette object. This member is static and can be invoked without creating an instance of the class.

removeCategory

Removes a category from the palette.

removeItem

Removes an item from the palette.

 See Also