Search
Palette Methods
 


 Public Methods

  Name Description

AddCategory

Overloaded.  

AddItem

Adds a DiagramItem to the displayed items collection.

ControlLoadedScript

Sets the name of a JavaScript function that should be invoked when the control is loaded on the client side.

FromJson

Overloaded.  

FromRequest

Initializes a new instance of the Palette class.

Init

Renders the Palette's initializing scripts on a web page under the specified function name.

LinkSelectedScript

Sets the name of a JavaScript function that should be invoked when a link is selected, either programmatically or by the user.

LoadFromJson

Loads the specified JSON data.

NodeSelectedScript

Sets the name of a JavaScript function that should be invoked when a node is selected, either programmatically or by the user.

RegisterItemType

Overloaded.  

RegisterSession

Registers the session instance with the ItemTypeResolver used in custom item serialization.

RemoveCategory

Removes a category from the palette.

RemoveItem

Removes a DiagramItem from the displayed items collection.

Render

Renders the Palette on a web page.

SaveToJson

Serializes the Palette's data to JSON.

SetAddScriptReferences

Sets a value indicating whether the control should render references to the client scripts.

SetAutoConnectDistance

Sets the maximum distance to a node when auto connecting links.

SetAutoConnectLinks

Sets whether links should be automatically connected to the nearest node.

SetBackColor

Sets the background color of the Palette control.

SetCaptionFont

Sets the font of the items captions.

SetColumns

Sets the number of columns in control's layout.

SetEnabled

Sets a value indicating whether handling of mouse events is enabled.

SetIconSize

Sets the size of the items displayed in the view.

SetLabelPosition

Sets a value indicating the position of labels relative to item icons.

SetMinVisibleFontSize

Sets a threshold value that hides text if scaled font sizes become smaller.

SetNewInstanceSize

Sets the default size with which items dragged onto a diagram will be created.

SetOrientation

Sets the layout orientation of the control.

SetTextColor

Sets the text color of the items captions.

SetTheme

Sets the theme used to style the control.

ShapeLibraryLoadedScript

Sets the name of a JavaScript function that should be invoked when a shape library is loaded.

ToJson

Serializes the Palette's data to JSON.

 See Also