Search
ShapeListBox Members
Constructors Properties Methods Events
 


The ShapeListBox control displays a set of shapes defined via the Shape class.

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

 Public Constructors

  Name Description

ShapeListBox

Initializes a new instance of the ShapeListBox class.

 Public Properties

  Name Description

AllowRemove

Gets or sets a value indicating whether users are allowed to remove list box items by pressing DEL.

DiagrammingProProductName

AllowRename

Gets or sets a value indicating whether users are allowed to rename the list box items by pressing F2.

DefaultNodeSize

Gets or sets the size of the shapes that are created by dragging list box items to the diagram.

DrawMode

ListBox.DrawMode override.

IconMargin

Gets or sets the horizontal and vertical margins left around the shape icons.

IconSize

Gets or sets the size of the shape icons.

Items

For internal use.

ShapeCount

Gets the number of shapes in the list box.

ShapeFillColor

Gets or sets the fill color of the shapes icons.

ShapeFilter

Gets or sets the ids of shapes that should be displayed in the listbox.

Shapes

Gets or sets the shapes displayed in the list box.

 Public Methods

  Name Description

AddShape

Adds a new shape to the end of the list box.

AddShapes

Overloaded. Adds the specified shapes to the end of the list box.

ClearShapes

Removes all shapes from the list box.

GetShapeAt

Gets the shape at the specified index in the list box.

InsertShape

Inserts the specified shape at the specified position.

InvalidateShapeAt

Invalidates shape at the specified index causing it to be redrawn.

RemoveShapeAt

Removes the shape at the specified index.

SetShapeAt

Sets a new shape at the specified position.

StartInlineEdit

Enters inplace-edit mode, allowing users to edit the label of the selected shape.

 Protected Methods

  Name Description

OnDrawItem

ListBox.OnDrawItem override.

OnKeyDown

Control.OnKeyDown override.

OnMeasureItem

ListBox.OnMeasureItem override.

OnMouseDown

Control.OnMouseDown override.

OnMouseMove

Control.OnMouseMove override.

OnSelectedIndexChanged

ListBox.OnSelectedIndexChanged override.

OnShapeRemoved

Raises the ShapeRemoved event.

OnShapeRenamed

Raises the ShapeRenamed event.

OnShapeSelected

Raises the ShapeSelected event.

 Public Events

  Name Description

ShapeRemoved

Raised when the user removes a shape from the list box.

ShapeRenamed

Raised when the user renames a shape in the list box.

ShapeSelected

Raised when the user selects a shape in the list box.

 See Also