MindFusion WinForms Programmer's Guide
ShapeListBox.Shapes Property
See Also
 





Gets or sets the shapes displayed in the list box.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms.Controls

 Syntax

C#  Copy Code

public Shape[] Shapes { get; set; }

Visual Basic  Copy Code

Public Property Shapes As Shape()

 Property Value

An array of Shape objects representing the shapes displayed in this list box.

 Example

This following example loads a shape library created with the ShapeDesigner tool and assigns the shapes to the ShapeListBox:

C#  Copy Code

ShapeLibrary lib = ShapeLibrary.LoadFrom("shapeLib.shl");
shapeList.Shapes = lib.Shapes;

Visual Basic  Copy Code

Dim library As ShapeLibrary = ShapeLibrary.LoadFrom("shapeLib.shl")
shapeList.Shapes = library.Shapes

 See Also

ShapeListBox Members
ShapeListBox Class
MindFusion.Diagramming.WinForms Namespace
ShapeFilter Property