Gets or sets a reference to the node's geometric shape definition.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C#
![]() |
---|
public Shape Shape { get; set; } |
Visual Basic
![]() |
---|
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#
![]() |
---|
private void example_Click(object sender, RoutedEventArgs e) // Use one of the predefined shapes // Create a custom shape |
Visual Basic
![]() |
---|
Private Sub example_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles example.Click Dim shapeNode0 As ShapeNode = CType(diagram.Nodes(0), ShapeNode) ' Use one of the predefined shapes ' Create a custom shape End Sub |