menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramAnnotationBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramAnnotationBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    DiagramAnnotationBuilder
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramAnnotationBuilder : ControlBuilder

    Constructors

    DiagramAnnotationBuilder()

    Declaration
    public DiagramAnnotationBuilder()

    DiagramAnnotationBuilder(DiagramAnnotation)

    Declaration
    public DiagramAnnotationBuilder(DiagramAnnotation model)
    Parameters
    Type Name Description
    DiagramAnnotation model

    Methods

    AddInfo(Object)

    Allows the user to save custom information/data about an annotation

    Declaration
    public DiagramAnnotationBuilder AddInfo(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramAnnotationBuilder

    AnnotationType(AnnotationType)

    Defines the type of annotation template String - Defines annotation template to be in string Template - Defines annotation template to be in html content

    Declaration
    public DiagramAnnotationBuilder AnnotationType(AnnotationType value)
    Parameters
    Type Name Description
    AnnotationType value
    Returns
    Type
    DiagramAnnotationBuilder

    Constraints(AnnotationConstraints)

    Enables or disables the default behaviors of the label. ReadOnly - Enables/Disables the ReadOnly Constraints InheritReadOnly - Enables/Disables the InheritReadOnly Constraints

    Declaration
    public DiagramAnnotationBuilder Constraints(AnnotationConstraints value)
    Parameters
    Type Name Description
    AnnotationConstraints value
    Returns
    Type
    DiagramAnnotationBuilder

    Content(String)

    Sets the textual description of the node/connector

    Declaration
    public DiagramAnnotationBuilder Content(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramAnnotationBuilder

    DragLimit(Object)

    Sets the space to be left between an annotation and its parent node/connector

    Declaration
    public DiagramAnnotationBuilder DragLimit(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramAnnotationBuilder

    Height(Double)

    Sets the height of the text

    Declaration
    public DiagramAnnotationBuilder Height(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramAnnotationBuilder

    HorizontalAlignment(HorizontalAlignment)

    Sets the horizontal alignment of the text with respect to the parent node/connector Stretch - Stretches the diagram element throughout its immediate parent Left - Aligns the diagram element at the left of its immediate parent Right - Aligns the diagram element at the right of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public DiagramAnnotationBuilder HorizontalAlignment(HorizontalAlignment value)
    Parameters
    Type Name Description
    HorizontalAlignment value
    Returns
    Type
    DiagramAnnotationBuilder

    Hyperlink(DiagramHyperlink)

    Sets the hyperlink of the label

    Declaration
    public DiagramAnnotationBuilder Hyperlink(DiagramHyperlink value)
    Parameters
    Type Name Description
    DiagramHyperlink value
    Returns
    Type
    DiagramAnnotationBuilder

    Hyperlink(Action<DiagramHyperlinkBuilder>)

    Declaration
    public DiagramAnnotationBuilder Hyperlink(Action<DiagramHyperlinkBuilder> hyperlink)
    Parameters
    Type Name Description
    System.Action<DiagramHyperlinkBuilder> hyperlink
    Returns
    Type
    DiagramAnnotationBuilder

    Id(String)

    Defines the unique id of the annotation

    Declaration
    public DiagramAnnotationBuilder Id(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramAnnotationBuilder

    Margin(DiagramMargin)

    Sets the space to be left between an annotation and its parent node/connector

    Declaration
    public DiagramAnnotationBuilder Margin(DiagramMargin value)
    Parameters
    Type Name Description
    DiagramMargin value
    Returns
    Type
    DiagramAnnotationBuilder

    Margin(Action<DiagramMarginBuilder>)

    Declaration
    public DiagramAnnotationBuilder Margin(Action<DiagramMarginBuilder> margin)
    Parameters
    Type Name Description
    System.Action<DiagramMarginBuilder> margin
    Returns
    Type
    DiagramAnnotationBuilder

    RotateAngle(Double)

    Sets the rotate angle of the text

    Declaration
    public DiagramAnnotationBuilder RotateAngle(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramAnnotationBuilder

    RotationReference(RotationReference)

    Gets or sets the reference mode for annotation rotation.

    Declaration
    public DiagramAnnotationBuilder RotationReference(RotationReference value)
    Parameters
    Type Name Description
    RotationReference value
    Returns
    Type
    DiagramAnnotationBuilder

    Style(DiagramTextStyle)

    Defines the appearance of the text

    Declaration
    public DiagramAnnotationBuilder Style(DiagramTextStyle value)
    Parameters
    Type Name Description
    DiagramTextStyle value
    Returns
    Type
    DiagramAnnotationBuilder

    Style(Action<DiagramTextStyleBuilder>)

    Declaration
    public DiagramAnnotationBuilder Style(Action<DiagramTextStyleBuilder> style)
    Parameters
    Type Name Description
    System.Action<DiagramTextStyleBuilder> style
    Returns
    Type
    DiagramAnnotationBuilder

    Template(Object)

    Sets the textual description of the node/connector

    Declaration
    public DiagramAnnotationBuilder Template(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramAnnotationBuilder

    Template(String)

    Sets the textual description of the node/connector

    Declaration
    public DiagramAnnotationBuilder Template(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramAnnotationBuilder

    Tooltip(Object)

    This property is used to show tooltip for annotation on mouse over.

    Declaration
    public DiagramAnnotationBuilder Tooltip(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramAnnotationBuilder

    Type(AnnotationTypes)

    Sets the type of the annotation Shape - Sets the annotation type as Shape Path - Sets the annotation type as Path

    Declaration
    public DiagramAnnotationBuilder Type(AnnotationTypes value)
    Parameters
    Type Name Description
    AnnotationTypes value
    Returns
    Type
    DiagramAnnotationBuilder

    VerticalAlignment(VerticalAlignment)

    Sets the vertical alignment of the text with respect to the parent node/connector Stretch - Stretches the diagram element throughout its immediate parent Top - Aligns the diagram element at the top of its immediate parent Bottom - Aligns the diagram element at the bottom of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public DiagramAnnotationBuilder VerticalAlignment(VerticalAlignment value)
    Parameters
    Type Name Description
    VerticalAlignment value
    Returns
    Type
    DiagramAnnotationBuilder

    Visibility(Boolean)

    Defines the visibility of the label

    Declaration
    public DiagramAnnotationBuilder Visibility(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    DiagramAnnotationBuilder

    Width(Double)

    Sets the width of the text

    Declaration
    public DiagramAnnotationBuilder Width(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramAnnotationBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved