menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramNodeAnnotationBuilder

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

    Constructors

    DiagramNodeAnnotationBuilder()

    Declaration
    public DiagramNodeAnnotationBuilder()

    DiagramNodeAnnotationBuilder(List<DiagramNodeAnnotation>)

    Declaration
    public DiagramNodeAnnotationBuilder(List<DiagramNodeAnnotation> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<DiagramNodeAnnotation> collection

    Methods

    Add()

    Declaration
    public void Add()

    AddInfo(Object)

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

    Declaration
    public DiagramNodeAnnotationBuilder AddInfo(object addInfo)
    Parameters
    Type Name Description
    System.Object addInfo
    Returns
    Type
    DiagramNodeAnnotationBuilder

    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 DiagramNodeAnnotationBuilder AnnotationType(AnnotationType annotationType)
    Parameters
    Type Name Description
    AnnotationType annotationType
    Returns
    Type
    DiagramNodeAnnotationBuilder

    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 DiagramNodeAnnotationBuilder Constraints(AnnotationConstraints constraints)
    Parameters
    Type Name Description
    AnnotationConstraints constraints
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Content(String)

    Sets the textual description of the node/connector

    Declaration
    public DiagramNodeAnnotationBuilder Content(string content)
    Parameters
    Type Name Description
    System.String content
    Returns
    Type
    DiagramNodeAnnotationBuilder

    DragLimit(DiagramMargin)

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

    Declaration
    public DiagramNodeAnnotationBuilder DragLimit(DiagramMargin dragLimit)
    Parameters
    Type Name Description
    DiagramMargin dragLimit
    Returns
    Type
    DiagramNodeAnnotationBuilder

    DragLimit(Action<DiagramMarginBuilder>)

    Declaration
    public DiagramNodeAnnotationBuilder DragLimit(Action<DiagramMarginBuilder> dragLimit)
    Parameters
    Type Name Description
    System.Action<DiagramMarginBuilder> dragLimit
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Height(Double)

    Sets the height of the text

    Declaration
    public DiagramNodeAnnotationBuilder Height(double height)
    Parameters
    Type Name Description
    System.Double height
    Returns
    Type
    DiagramNodeAnnotationBuilder

    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 DiagramNodeAnnotationBuilder HorizontalAlignment(HorizontalAlignment horizontalAlignment)
    Parameters
    Type Name Description
    HorizontalAlignment horizontalAlignment
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Hyperlink(DiagramHyperlink)

    Sets the hyperlink of the label

    Declaration
    public DiagramNodeAnnotationBuilder Hyperlink(DiagramHyperlink hyperlink)
    Parameters
    Type Name Description
    DiagramHyperlink hyperlink
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Hyperlink(Action<DiagramHyperlinkBuilder>)

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

    Id(String)

    Defines the unique id of the annotation

    Declaration
    public DiagramNodeAnnotationBuilder Id(string id)
    Parameters
    Type Name Description
    System.String id
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Margin(DiagramMargin)

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

    Declaration
    public DiagramNodeAnnotationBuilder Margin(DiagramMargin margin)
    Parameters
    Type Name Description
    DiagramMargin margin
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Margin(Action<DiagramMarginBuilder>)

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

    Offset(DiagramPoint)

    Sets the position of the annotation with respect to its parent bounds

    Declaration
    public DiagramNodeAnnotationBuilder Offset(DiagramPoint offset)
    Parameters
    Type Name Description
    DiagramPoint offset
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Offset(Action<DiagramPointBuilder>)

    Declaration
    public DiagramNodeAnnotationBuilder Offset(Action<DiagramPointBuilder> offset)
    Parameters
    Type Name Description
    System.Action<DiagramPointBuilder> offset
    Returns
    Type
    DiagramNodeAnnotationBuilder

    RotateAngle(Double)

    Sets the rotate angle of the text

    Declaration
    public DiagramNodeAnnotationBuilder RotateAngle(double rotateAngle)
    Parameters
    Type Name Description
    System.Double rotateAngle
    Returns
    Type
    DiagramNodeAnnotationBuilder

    RotationReference(RotationReference)

    Gets or sets the reference mode for annotation rotation.

    Declaration
    public DiagramNodeAnnotationBuilder RotationReference(RotationReference rotationReference)
    Parameters
    Type Name Description
    RotationReference rotationReference
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Style(DiagramTextStyle)

    Defines the appearance of the text

    Declaration
    public DiagramNodeAnnotationBuilder Style(DiagramTextStyle style)
    Parameters
    Type Name Description
    DiagramTextStyle style
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Style(Action<DiagramTextStyleBuilder>)

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

    Template(Object)

    Sets the textual description of the node/connector

    Declaration
    public DiagramNodeAnnotationBuilder Template(object template)
    Parameters
    Type Name Description
    System.Object template
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Template(String)

    Sets the textual description of the node/connector

    Declaration
    public DiagramNodeAnnotationBuilder Template(string template)
    Parameters
    Type Name Description
    System.String template
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Tooltip(Object)

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

    Declaration
    public DiagramNodeAnnotationBuilder Tooltip(object tooltip)
    Parameters
    Type Name Description
    System.Object tooltip
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Type(AnnotationTypes)

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

    Declaration
    public DiagramNodeAnnotationBuilder Type(AnnotationTypes type)
    Parameters
    Type Name Description
    AnnotationTypes type
    Returns
    Type
    DiagramNodeAnnotationBuilder

    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 DiagramNodeAnnotationBuilder VerticalAlignment(VerticalAlignment verticalAlignment)
    Parameters
    Type Name Description
    VerticalAlignment verticalAlignment
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Visibility(Boolean)

    Defines the visibility of the label

    Declaration
    public DiagramNodeAnnotationBuilder Visibility(bool visibility)
    Parameters
    Type Name Description
    System.Boolean visibility
    Returns
    Type
    DiagramNodeAnnotationBuilder

    Width(Double)

    Sets the width of the text

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