alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum BezierSegmentEditOrientation

    Specifies the orientation for editing mode of the intermediate point of two bezier segment

    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public enum BezierSegmentEditOrientation
    Examples
     <SfDiagramComponent @ref = "diagram" Height="600px" Width="90%" ID="diagram" @bind-Connectors="connectors"></SfDiagramComponent>
    @code {
        SfDiagramComponent diagram; DiagramObjectCollection<Connector> connectors = new DiagramObjectCollection<Connector>();
        protected override void OnInitialized()
        {
                    Connector connector2 = new Connector()
                    {
                            ID = "connector2",
                            SourcePoint = new DiagramPoint() { X = 700, Y = 200 },
                            TargetPoint = new DiagramPoint() { X = 1000, Y = 400 },
                            Segments = new DiagramObjectCollection<ConnectorSegment>()
                            {
                                new BezierSegment() { Type = ConnectorSegmentType.Bezier, Point = new DiagramPoint() { X = 750, Y = 250 }},
                                new BezierSegment() { Type = ConnectorSegmentType.Bezier, Point = new DiagramPoint() { X = 900, Y = 350 }}
                             },
                            Type = ConnectorSegmentType.Bezier,
                            BezierConnectorSettings = new BezierConnectorSettings() { SegmentEditOrientation = BezierSegmentEditOrientation.Bidirectional },
                   };
                   connectors.Add(connector1);
        }
    }

    Fields

    Name Description
    Bidirectional

    Allows the intermediate points to be dragged either vertical or horizontal directions.

    FreeForm

    Allows the intermediate points to be dragged in any direction

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved