Class SegmentThumbSettings
Represents the settings for a segment thumb, including its shape, for connector segments.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class SegmentThumbSettings : DiagramObject, IDiagramObject, ICloneable
Examples
<SfDiagramComponent ConnectorSegmentThumb="@connectorSegmentThumb" Connectors="@connectors"/>
@code {
SegmentThumbSettings connectorSegmentThumb = new SegmentThumbSettings()
{
Shape = SegmentThumbShapes.Square
};
// Defines the diagram's connectors collection
public DiagramObjectCollection<Connector> connectors = new DiagramObjectCollection<Connector>();
protected override void OnInitialized()
{
Connector connector = new Connector()
{
ID = "connector1",
Type = ConnectorSegmentType.Orthogonal,
SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
// Set the ConnectorConstraints...
Constraints |= ConnectorConstraints.DragSegmentThumb | ConnectorConstraints.InheritSegmentThumbShape;
};
connectors.Add(connector);
}
}
Constructors
SegmentThumbSettings()
Initializes a new instance of the SegmentThumbSettings.
Declaration
public SegmentThumbSettings()
Properties
Shape
Gets or sets the shape of the segment thumb for connector segments.
Declaration
public SegmentThumbShapes Shape { get; set; }
Property Value
Type |
---|
SegmentThumbShapes |
Examples
<SfDiagramComponent ConnectorSegmentThumb ="@connectorSegmentThumb" />
@code {
SegmentThumbSettings connectorSegmentThumb = new SegmentThumbSettings() {
Shape = SegmentThumbShapes.Square
};
}
Implements
System.ICloneable