Blazor

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AnnotationConstraints

    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 Description
    AnnotationConstraints

    None

    Disables all the functionalities of annotation.

    Declaration
    public const AnnotationConstraints None
    Field Value
    Type Description
    AnnotationConstraints

    ReadOnly

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

    Declaration
    public const AnnotationConstraints ReadOnly
    Field Value
    Type Description
    AnnotationConstraints

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved