Gets or sets the default shape of shape nodes.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public Shape DefaultShape { get; set; } |
Visual Basic Copy Code |
---|
Public Property DefaultShape As Shape |
The Shape property of newly created shape nodes is initialized with the value of this property. It defines a series of lines, arcs and curves composed in a complex shape. There are 87 predefined shapes exposed as static members of the Shape class. You can also define your own shapes as shown below.
The following example demonstrates how to create a custom shape and set it as a default in the diagram:
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) |
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |