Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramConnectorFixedUserHandle - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramConnectorFixedUserHandle

    Represents a customizable handle that can be used to perform custom actions.

    Inheritance
    System.Object
    SfDiagramBase
    Syncfusion.Blazor.Diagrams.Internal.FixedUserHandle
    DiagramConnectorFixedUserHandle
    Inherited Members
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramConnectorFixedUserHandle : FixedUserHandle
    Remarks

    The user handles are icons that are placed around the node or connector to run the frequently used commands.

    Examples
    <SfDiagram Height="600px"  Connectors="@ConnectorCollection">
    </SfDiagram>
    @code{
       public ObservableCollection<DiagramConnector> ConnectorCollection = new ObservableCollection<DiagramConnector>() { };
       protected override void OnInitialized()
       {
         DiagramConnector connector1 = new DiagramConnector()
         {
           // Unique name for the connector
           Id = "connector1",
           // Source and Target node's name to which connector needs to be connected.
           SourcePoint = new ConnectorSourcePoint() { X = 200, Y = 100 },
           TargetPoint = new ConnectorTargetPoint() { X = 300, Y = 300 },
           Type = Segments.Orthogonal,
           FixedUserHandles = new ObservableCollection<DiagramConnectorFixedUserHandle>()
           {
            new DiagramConnectorFixedUserHandle() { Id = "user2",Height = 20, Width = 20, Offset = 1,Fill = "red",Visibility = true, Alignment = AnnotationAlignment.After, Displacement ={ X = 10,Y = 10 },CornerRadius = 4, HandleStrokeColor = "green" , HandleStrokeWidth = 4, 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" }
           },
          };
         ConnectorCollection.Add(connector1);
       }
     }

    Constructors

    DiagramConnectorFixedUserHandle()

    Represents a customizable handle that can be used to perform custom actions.

    Declaration
    public DiagramConnectorFixedUserHandle()

    Properties

    Alignment

    Specifies the segment alignment of the fixed user handle.

    Declaration
    public FixedUserHandleAlignment Alignment { get; set; }
    Property Value
    Type Description
    FixedUserHandleAlignment

    Displacement

    Specifies the displacement of an fixed user handle from its actual position.

    Declaration
    public ConnectorDisplacementPoint Displacement { get; set; }
    Property Value
    Type Description
    ConnectorDisplacementPoint

    Offset

    Specifies the position of the connector fixed user handle.

    Declaration
    public Nullable<double> Offset { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved