Class DiagramNodeAnnotation
Inheritance
System.Object
DiagramNodeAnnotation
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramNodeAnnotation : EJTagHelper
Constructors
DiagramNodeAnnotation()
Declaration
public DiagramNodeAnnotation()
Properties
AddInfo
Allows the user to save custom information/data about an annotation
Declaration
public object AddInfo { get; set; }
Property Value
Type |
Description |
System.Object |
|
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 AnnotationType AnnotationType { get; set; }
Property Value
Constraints
Enables or disables the default behaviors of the label.
ReadOnly - Enables/Disables the ReadOnly Constraints
InheritReadOnly - Enables/Disables the InheritReadOnly Constraints
Declaration
public AnnotationConstraints Constraints { get; set; }
Property Value
Content
Sets the textual description of the node/connector
Declaration
public string Content { get; set; }
Property Value
Type |
Description |
System.String |
|
DragLimit
Sets the space to be left between an annotation and its parent node/connector
Declaration
public DiagramMargin DragLimit { get; set; }
Property Value
Height
Sets the height of the text
Declaration
public double Height { get; set; }
Property Value
Type |
Description |
System.Double |
|
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 HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Hyperlink
Sets the hyperlink of the label
Declaration
public DiagramHyperlink Hyperlink { get; set; }
Property Value
Id
Defines the unique id of the annotation
Declaration
public override string Id { get; set; }
Property Value
Type |
Description |
System.String |
|
Overrides
IsChild
Declaration
protected override bool IsChild { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Margin
Sets the space to be left between an annotation and its parent node/connector
Declaration
public DiagramMargin Margin { get; set; }
Property Value
Offset
Sets the position of the annotation with respect to its parent bounds
Declaration
public DiagramPoint Offset { get; set; }
Property Value
RotateAngle
Sets the rotate angle of the text
Declaration
public double RotateAngle { get; set; }
Property Value
Type |
Description |
System.Double |
|
Style
Defines the appearance of the text
Declaration
public DiagramTextStyle Style { get; set; }
Property Value
Template
Sets the textual description of the node/connector
Declaration
public string Template { get; set; }
Property Value
Type |
Description |
System.String |
|
Type
Sets the type of the annotation
Shape - Sets the annotation type as Shape
Path - Sets the annotation type as Path
Declaration
public AnnotationTypes Type { get; set; }
Property Value
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 VerticalAlignment VerticalAlignment { get; set; }
Property Value
Visibility
Defines the visibility of the label
Declaration
public bool Visibility { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Width
Sets the width of the text
Declaration
public double Width { get; set; }
Property Value
Type |
Description |
System.Double |
|