Class PathAnnotation
Represents the block of text displayed over the connector.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class PathAnnotation : Annotation, IDiagramObject, ICloneable
Constructors
PathAnnotation()
Initializes a new instance of the PathAnnotation.
Declaration
public PathAnnotation()
PathAnnotation(PathAnnotation)
Creates a new instance of the PathAnnotation from the given PathAnnotation.
Declaration
public PathAnnotation(PathAnnotation src)
Parameters
Type | Name | Description |
---|---|---|
PathAnnotation | src | PathAnnotation |
Properties
Alignment
Gets or sets the alignment of an annotation in a connector. By default, it is aligned at the center.
Declaration
public AnnotationAlignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
AnnotationAlignment |
Remarks
Below are the available alignment options |
1. Center, Annotation placed on the connector segment. |
2. Before,Annotation is placed at the top of the connector segment. |
3. After, Annotation is placed at the bottom of the connector segment. |
Displacement
Gets or sets the displacement (margin) of an annotation from its actual position. Applicable only for connector.
Declaration
public DiagramPoint Displacement { get; set; }
Property Value
Type | Description |
---|---|
DiagramPoint |
Offset
Gets or sets the offset of an annotation in a connector. By default, it is 0.5
Declaration
public double Offset { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
SegmentAngle
Gets or sets the segment angle of the connector.
Declaration
public bool SegmentAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Clone()
Creates a new PathAnnotation that is a copy of the current annotation.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | PathAnnotation |
Overrides
Implements
System.ICloneable