Class Annotation
Represent a block of text that can be displayed over a node or connector.
Namespace: Syncfusion.UI.Xaml.Diagram.Serializer
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class Annotation : DiagramElement
Constructors
Annotation()
Declaration
public Annotation()
Properties
AnnotationRelativeMode
Gets or sets the value to drag the connector annotation on the segment path or segments bounds of connector.
Declaration
public AnnotationRelativeMode AnnotationRelativeMode { get; set; }
Property Value
Type |
---|
AnnotationRelativeMode |
Attributes
Gets or sets the attributes value of the annotation.
Declaration
public Dictionary<string, object> Attributes { get; set; }
Property Value
Type |
---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Background
Gets or sets background color of the annotation.
Declaration
public Brush Background { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
Constraints
Gets or sets the constraints value of annotation.
Declaration
public AnnotationConstraints Constraints { get; set; }
Property Value
Type |
---|
AnnotationConstraints |
Content
Gets or sets the content of annotation.
Declaration
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
Displacement
Gets or sets value of position variation from its original position
Declaration
public double Displacement { get; set; }
Property Value
Type |
---|
System.Double |
DragLimit
Gets or sets the dragging limit for annotation over the connector or node.
Declaration
public Thickness DragLimit { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
FontFamily
Gets or sets font family of the annotation.
Declaration
public string FontFamily { get; set; }
Property Value
Type |
---|
System.String |
FontSize
Gets or sets the font size of the annotation.
Declaration
public double FontSize { get; set; }
Property Value
Type |
---|
System.Double |
FontStyle
Gets or sets the font style of the annotation.
Declaration
public string FontStyle { get; set; }
Property Value
Type |
---|
System.String |
FontWeight
Gets or sets the font weight of the annotation.
Declaration
public string FontWeight { get; set; }
Property Value
Type |
---|
System.String |
Foreground
Gets or sets the foregorund color of the annotation.
Declaration
public Brush Foreground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
Height
Gets or sets height of annotation.
Declaration
public double Height { get; set; }
Property Value
Type |
---|
System.Double |
HorizontalAlignment
Gets or sets the horizontal alignments of annotation.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type |
---|
System.Windows.HorizontalAlignment |
Length
Gets or sets the position of the annotation over the connector.
Declaration
public double Length { get; set; }
Property Value
Type |
---|
System.Double |
Margin
Gets or sets the margin value of annotation for its position.
Declaration
public Thickness Margin { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
Offset
Gets or sets the position of annotation over the node.
Declaration
public Point Offset { get; set; }
Property Value
Type |
---|
System.Windows.Point |
Pivot
Gets or sets the alignments of the annotation over its position.
Declaration
public Point Pivot { get; set; }
Property Value
Type |
---|
System.Windows.Point |
ReadOnly
Gets or sets the value whether annotation can be edit or not when double click on it.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type |
---|
System.Boolean |
RotateAngle
Gets or sets the rotation angle of annotation.
Declaration
public double RotateAngle { get; set; }
Property Value
Type |
---|
System.Double |
RotationReference
Gets or sets the value to rotate the node along with annotation or diagram page.
Declaration
public RotationReference RotationReference { get; set; }
Property Value
Type |
---|
RotationReference |
Text
Gets or sets the text of the annotation.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TextDecorations
Gets or sets text decorations of the annotation.
Declaration
public TextDecorationCollection TextDecorations { get; set; }
Property Value
Type |
---|
System.Windows.TextDecorationCollection |
TextHorizontalAlignment
Gets or sets the horizontal alignment of text using in annotation.
Declaration
public TextAlignment TextHorizontalAlignment { get; set; }
Property Value
Type |
---|
System.Windows.TextAlignment |
TextTrimming
Gets or sets the text trimming of the annotation.
Declaration
public TextTrimming TextTrimming { get; set; }
Property Value
Type |
---|
System.Windows.TextTrimming |
TextVerticalAlignment
Gets or sets the vertical alignment of text using in annotation.
Declaration
public VerticalAlignment TextVerticalAlignment { get; set; }
Property Value
Type |
---|
System.Windows.VerticalAlignment |
VerticalAlignment
Gets or sets the vertical alignments of annotation.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Type |
---|
System.Windows.VerticalAlignment |
Width
Gets or sets width of annotation.
Declaration
public double Width { get; set; }
Property Value
Type |
---|
System.Double |
WrapText
Gets or sets the text wrapping value of annotation.
Declaration
public TextWrapping WrapText { get; set; }
Property Value
Type |
---|
System.Windows.TextWrapping |