Search
ShapeToolBar Members
Constructors Properties Methods Events
 


The ShapeToolBar control displays image buttons representing selected shapes defined via the Shape class. These buttons can be used to create new shape nodes that have a specific shape or to change the shape of existing nodes.

The following tables list the members exposed by the ShapeToolBar type.

 Public Constructors

  Name Description

ShapeToolBar

Initializes a new instance of the ShapeToolBar class.

 Public Properties

  Name Description

AllowDrag

Gets or sets a value indicating whether dragging shapes from the toolbar to a DiagramView is enabled.

ButtonImageSize

Gets or sets the size of the icon images displayed inside toolbar buttons.

Buttons

Gets a list of all buttons in the toolbar.

DefaultNodeSize

Gets or sets the size of nodes created by dragging shapes from the toolbar to the diagram canvas.

SelectedShape

Gets the Shape currently selected in the toolbar.

ShapeFillColor

Gets or sets the color of toolbar button icons.

Shapes

Gets or sets the identifiers of all shapes available in the toolbar.

ShowImages

Gets or sets a value indicating whether to display shape icons in the toolbar buttons.

ShowText

Gets or sets a value indicating whether to show the DisplayName of the shapes as toolbar button titles.

 Public Methods

  Name Description

RecreateImages

Recreates the toolbar button images.

 Protected Methods

  Name Description

OnMouseDown

Control.OnMouseDown override.

OnMouseMove

Control.OnMouseMove override.

 Public Events

  Name Description

DrawNode

Raised to perform custom drawing on a toolbar's shape image.

ShapeClicked

Raised when the user clicks a shape button.

 See Also