menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AnnotationRotationReference - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AnnotationRotationReference

    Specifies how the annotation should rotate in relation to the node.

    Inheritance
    System.Object
    AnnotationRotationReference
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class AnnotationRotationReference : Enum
    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

    Page

    Defines the annotation maintains its relative angle to the parent node during rotation.

    Declaration
    public const AnnotationRotationReference Page
    Field Value
    Type
    AnnotationRotationReference

    Parent

    Defines the annotation maintains relative angle to the node during rotation

    Declaration
    public const AnnotationRotationReference Parent
    Field Value
    Type
    AnnotationRotationReference
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved