Class BezierSegmentEditOrientation
Specifies the orientation for editing mode of the intermediate point of two bezier segment
Inheritance
System.Object
BezierSegmentEditOrientation
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class BezierSegmentEditOrientation : 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() { SegmentEditOrientation = BezierSegmentEditOrientation.Bidirectional },
};
connectors.Add(connector1);
}
}
Fields
Bidirectional
Allows the intermediate points to be dragged either vertical or horizontal directions.
Declaration
public const BezierSegmentEditOrientation Bidirectional
Field Value
Type |
---|
BezierSegmentEditOrientation |
FreeForm
Allows the intermediate points to be dragged in any direction
Declaration
public const BezierSegmentEditOrientation FreeForm
Field Value
Type |
---|
BezierSegmentEditOrientation |