Class ControlPointsVisibility
Specifies the visibility options for control points in a Bezier curve.
Inheritance
System.Object
ControlPointsVisibility
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class ControlPointsVisibility : 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() { ControlPointsVisibility = ControlPointsVisibility.Target },
};
connectors.Add(connector1);
}
}
Fields
All
Indicates the visibility option for displaying all control points in a Bezier connector, including the control points of the source, target, and intermediate segments.
Declaration
public const ControlPointsVisibility All
Field Value
Type |
---|
ControlPointsVisibility |
Intermediate
Indicates the visibility option for displaying the control points of intermediate segments in a Bezier connector.
Declaration
public const ControlPointsVisibility Intermediate
Field Value
Type |
---|
ControlPointsVisibility |
None
Indicates the visibility option for hiding all control points in a Bezier connector.
Declaration
public const ControlPointsVisibility None
Field Value
Type |
---|
ControlPointsVisibility |
Source
Indicates the visibility option for displaying the control points of the source segment in a Bezier connector.
Declaration
public const ControlPointsVisibility Source
Field Value
Type |
---|
ControlPointsVisibility |
Target
Indicates the visibility option for displaying the control points of the target segment in a Bezier connector.
Declaration
public const ControlPointsVisibility Target
Field Value
Type |
---|
ControlPointsVisibility |