Search
FreeFormNode Class
Remarks See Also
 






A FreeFormNode collects all points from users' mouse or touch input and displays them as node's outline.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public class FreeFormNode : DiagramNode, InplaceEditable

Visual Basic  Copy Code

Public Class FreeFormNode
    Inherits DiagramNode
    Implements InplaceEditable

 Remarks

To let users draw free-form nodes interactively, set Behavior to DrawFreeForms or LinkFreeForms. Use the Points property of FreeFormNode to get or set outline points programmatically.

If the Closed property is set, the node is drawn as a closed shape and its interior filled, or otherwise the node is drawn as a polyline. If the distance between first and last points drawn by user is shorter than AutoCloseDistance, the node's Closed property is automatically set to true. Initial AutoCloseDistance value is null, which always closes free-form nodes by default.

If Behavior is set to DrawFreeShapes or LinkFreeShapes, input is still collected as points and rendered using FreeFormNode during user interaction, but once user finishes drawing, the diagram creates a ShapeNode with closest matching shape. Set the FreeFormTargets property to specify which shapes are considered as free-form replacements.

 Inheritance Hierarchy

System.Object
    Microsoft.Maui.Controls.BindableObject
        MindFusion.Diagramming.DiagramItem
            MindFusion.Diagramming.DiagramNode
                MindFusion.Diagramming.FreeFormNode

 See Also