alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Enum BezierSmoothness

    Specifies the smoothness between the neighboring bezier segments.

    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    [Flags]
    public enum BezierSmoothness
    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() { Smoothness = BezierSmoothness.Both },
                   };
                   connectors.Add(connector1);
        }
    }

    Fields

    Name Description
    Both

    Enables to maintain the same angle and distance for the bezier segment control points when any one of them is editing.

    None

    Disable all smoothness constraints.

    SymmetricAngle

    Enables to maintain the same angle for the bezier segment control points when any one of them is editing.

    SymmetricDistance

    Enables to maintain the same distance for the bezier segment control points when any one of them is editing.

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