Enum AnnotationRotationReference
Specifies how the annotation should rotate in relation to the node.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum AnnotationRotationReference
Remarks
This enum defines whether the annotation's orientation is fixed relative to the page or follows the rotation of its parent node.
Examples
Node node = new Node()
{
// Position of the node
OffsetX = 250,
OffsetY = 250,
// Size of the node
Width = 100,
Height = 100,
Annotations = new DiagramObjectCollection<ShapeAnnotation>()
{
new ShapeAnnotation
{
Content = "Node",
ID = "Annotation",
RotationReference = AnnotationRotationReference.Page,
}
},
};
Fields
| Name | Description |
|---|---|
| Page | Defines the annotation maintains its relative angle to the parent node during rotation. |
| Parent | Defines the annotation maintains relative angle to the node during rotation |