Gets or sets a reference to the node's geometric shape definition.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public Shape Shape { get; set; } |
Visual Basic Copy Code |
---|
Public Property Shape As Shape |
An instance of the Shape class.
Use this property to assign a complex shape to a node. Complex shapes consist of outlines, decorations and text-region definitions that can be defined as series of lines, arcs and curves. To define a custom shape, create an instance of the Shape class. That class also provides 87 predefined shapes exposed by the Shapes collection.
The following sample code illustrates how to use the predefined shapes and how to create your own custom shapes.
C# Copy Code |
---|
private void example_Click(object sender, System.EventArgs e) |
Visual Basic Copy Code |
---|
Private Sub example_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles example.Click |