Enum ControlPointsVisibility
Specifies the visibility options for control points in a Bezier curve.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
[Flags]
public enum ControlPointsVisibility
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
| Name | Description |
|---|---|
| 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. |
| Intermediate | Indicates the visibility option for displaying the control points of intermediate segments in a Bezier connector. |
| None | Indicates the visibility option for hiding all control points in a Bezier connector. |
| Source | Indicates the visibility option for displaying the control points of the source segment in a Bezier connector. |
| Target | Indicates the visibility option for displaying the control points of the target segment in a Bezier connector. |