Class ConnectorAnnotationMargin
Specifies the space around the connector annotation.
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class ConnectorAnnotationMargin : DiagramMargin
Examples
<SfDiagram Height="600px" Connectors="@ConnectorCollection">
</SfDiagram>
@code
{
//Defines diagram's connector collection
public ObservableCollection<DiagramConnector> ConnectorCollection { get; set; }
protected override void OnInitialized()
{
ConnectorCollection = new ObservableCollection<DiagramConnector>();
DiagramConnector Connector = new DiagramConnector()
{
SourcePoint = new ConnectorSourcePoint() { X = 300, Y = 40 },
TargetPoint = new ConnectorTargetPoint() { X = 400, Y = 160 },
Type = Segments.Orthogonal,
Style = new ConnectorShapeStyle() { StrokeColor = "#6BA5D7" },
Annotations = new ObservableCollection<DiagramConnectorAnnotation>()
{
new DiagramConnectorAnnotation() { Content = "Annotation length will be varied", Width = 50, Height = 50 ,Margin = new ConnectorAnnotationMargin(){ Left=10} },
}
};
ConnectorCollection.Add(Connector);
}
}
Constructors
ConnectorAnnotationMargin()
Specifies the space around the connector annotation.
Declaration
public ConnectorAnnotationMargin()