menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NodeFixedUserHandle - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class NodeFixedUserHandle

    Represents the node’s fixed user handle in a diagram. This handle provides a standard way to interact with nodes in the diagram interface, allowing for uniform manipulation and interaction.

    Inheritance
    System.Object
    DiagramObject
    FixedUserHandle
    NodeFixedUserHandle
    Implements
    IDiagramObject
    System.ICloneable
    Inherited Members
    DiagramObject.GetParent()
    DiagramObject.OnPropertyChanged(String, Object, Object, IDiagramObject)
    FixedUserHandle.CornerRadius
    FixedUserHandle.Fill
    FixedUserHandle.Height
    FixedUserHandle.IconStroke
    FixedUserHandle.IconStrokeThickness
    FixedUserHandle.ID
    FixedUserHandle.Padding
    FixedUserHandle.PathData
    FixedUserHandle.Stroke
    FixedUserHandle.StrokeThickness
    FixedUserHandle.Tooltip
    FixedUserHandle.Visibility
    FixedUserHandle.Width
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class NodeFixedUserHandle : FixedUserHandle, IDiagramObject, ICloneable
    Remarks

    It forms part of the user interface interactions, enabling custom handles for diagram nodes that enhance the usability and interaction capabilities within diagram components.

    Examples

    The following example creates a Node with a NodeFixedUserHandle:

    Node node1 = new Node() 
    { 
        OffsetX = 250, 
        OffsetY = 250, 
        Width = 100, 
        Height = 100, 
        FixedUserHandles = new DiagramObjectCollection<NodeFixedUserHandle>() 
        { 
            new NodeFixedUserHandle() 
            { 
                ID = "user1", 
                Height = 20, 
                Width = 20, 
                Visibility = true,
                Padding = new DiagramThickness() { Bottom = 1, Left = 1, Right = 1, Top = 1 },
                Margin = new DiagramThickness() { Right = 20 },
                Offset = new DiagramPoint() { X = 0, Y = 0 },
                PathData = "M60.3,18H27.5c-3,0-5.5,2.4-5.5,5.5v38.2h5.5V23.5h32.7V18z M68.5,28.9h-30c-3,0-5.5,2.4-5.5,5.5v38.2c0,3,2.4,5.5,5.5,5.5h30c3,0,5.5-2.4,5.5-5.5V34.4C73.9,31.4,71.5,28.9,68.5,28.9z M68.5,72.5h-30V34.4h30V72.5z"
            } 
        }
    };

    Constructors

    NodeFixedUserHandle()

    Initializes a new instance of the NodeFixedUserHandle.

    Declaration
    public NodeFixedUserHandle()

    NodeFixedUserHandle(NodeFixedUserHandle)

    Initializes a new instance of the NodeFixedUserHandle class by copying an existing instance.

    Declaration
    public NodeFixedUserHandle(NodeFixedUserHandle src)
    Parameters
    Type Name Description
    NodeFixedUserHandle src

    The source NodeFixedUserHandle to copy.

    Properties

    Margin

    Gets or sets the extra space around the outer boundaries of the fixed user handle.

    Declaration
    public DiagramThickness Margin { get; set; }
    Property Value
    Type Description
    DiagramThickness

    A DiagramThickness representing the extra space around the outer boundaries of the fixed user handle. The default value is 0 from all sides.

    Remarks

    Use the Margin property to configure the padding space around the handle, allowing for better visual alignment and spacing within the diagram.

    Examples

    The following example creates a Node with a NodeFixedUserHandle:

    Node node1 = new Node() 
    { 
        OffsetX = 250, 
        OffsetY = 250, 
        Width = 100, 
        Height = 100, 
        FixedUserHandles = new DiagramObjectCollection<NodeFixedUserHandle>() 
        { 
            new NodeFixedUserHandle() 
            { 
                ID = "user1", 
                Height = 20, 
                Width = 20, 
                Visibility = true,
                Margin = new DiagramThickness() { Right = 20 },
                Offset = new DiagramPoint() { X = 0, Y = 0 },
                PathData = "M60.3,18H27.5c-3,0-5.5,2.4-5.5,5.5v38.2h5.5V23.5h32.7V18z M68.5,28.9h-30c-3,0-5.5,2.4-5.5,5.5v38.2c0,3,2.4,5.5,5.5,5.5h30c3,0,5.5-2.4,5.5-5.5V34.4C73.9,31.4,71.5,28.9,68.5,28.9z M68.5,72.5h-30V34.4h30V72.5z"
            } 
        }
    };

    Offset

    Gets or sets the position of the node fixed user handle.

    Declaration
    public DiagramPoint Offset { get; set; }
    Property Value
    Type Description
    DiagramPoint

    A DiagramPoint representing the position of the handle. No default value is set.

    Remarks

    This property determines the specific position of the user handle on a diagram node. Adjusting the Offset affects how the handle interacts with other diagram components.

    Examples
    Node node = new Node()
    {
        FixedUserHandles = new DiagramObjectCollection<NodeFixedUserHandle>()
        {
            new NodeFixedUserHandle()
            {
                ID = "user1",
                Height = 25,
                Width = 25,
                Offset = 0.5,
            }
        },
    };

    Methods

    Clone()

    Creates a new object that is a copy of the current NodeFixedUserHandle.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    A new instance of NodeFixedUserHandle that is a copy of the current object.

    Overrides
    FixedUserHandle.Clone()

    Implements

    IDiagramObject
    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved