menu

Blazor

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

    Show / Hide Table of Contents

    Class AnnotationConstraints

    Enables or disables certain features and behaviors of the annotations.

    Inheritance
    System.Object
    AnnotationConstraints
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class AnnotationConstraints : Enum
    Examples
    Node node = new Node()
    {
        // Initialize annotation collection
        Annotations = new DiagramObjectCollection<ShapeAnnotation>() 
        { 
            new ShapeAnnotation 
            { 
                Constraints = AnnotationConstraints.ReadOnly,
            }
        },
    };

    Fields

    InheritReadOnly

    Enables or disables the user from inheriting the ReadOnly option from the parent.

    Declaration
    public const AnnotationConstraints InheritReadOnly
    Field Value
    Type
    AnnotationConstraints

    None

    Disables all the functionalities of annotation.

    Declaration
    public const AnnotationConstraints None
    Field Value
    Type
    AnnotationConstraints

    ReadOnly

    Enables the user to only read the annotation (cannot be edited).

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