menu

Blazor

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

    Show / Hide Table of Contents

    Class BezierSmoothness

    Specifies the smoothness between the neighboring bezier segments.

    Inheritance
    System.Object
    BezierSmoothness
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class BezierSmoothness : Enum
    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

    Both

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

    Declaration
    public const BezierSmoothness Both
    Field Value
    Type
    BezierSmoothness

    None

    Disable all smoothness constraints.

    Declaration
    public const BezierSmoothness None
    Field Value
    Type
    BezierSmoothness

    SymmetricAngle

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

    Declaration
    public const BezierSmoothness SymmetricAngle
    Field Value
    Type
    BezierSmoothness

    SymmetricDistance

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

    Declaration
    public const BezierSmoothness SymmetricDistance
    Field Value
    Type
    BezierSmoothness
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved