menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Annotation - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Annotation

    Represent a block of text that can be displayed over a node or connector.

    Inheritance
    System.Object
    DiagramElement
    Annotation
    Inherited Members
    DiagramElement.ID
    DiagramElement.Key
    DiagramElement.Raw
    DiagramElement.Type
    Namespace: Syncfusion.UI.Xaml.Diagram.Serializer
    Assembly: Syncfusion.SfDiagram.UWP.dll
    Syntax
    public class Annotation : DiagramElement

    Constructors

    Annotation()

    Declaration
    public Annotation()

    Properties

    Alignment

    Gets or sets the alignment of a connector annotation.

    Declaration
    public ConnectorAnnotationAlignment Alignment { get; set; }
    Property Value
    Type
    ConnectorAnnotationAlignment

    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>

    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
    Windows.UI.Xaml.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

    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
    Windows.UI.Xaml.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
    Windows.UI.Xaml.Thickness

    Offset

    Gets or sets the position of annotation over the node.

    Declaration
    public Point Offset { get; set; }
    Property Value
    Type
    Windows.Foundation.Point

    Pivot

    Gets or sets the alignments of the annotation over its position.

    Declaration
    public Point Pivot { get; set; }
    Property Value
    Type
    Windows.Foundation.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

    TextHorizontalAlignment

    Gets or sets the horizontal alignment of text using in annotation.

    Declaration
    public TextAlignment TextHorizontalAlignment { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.TextAlignment

    TextTrimming

    Gets or sets the text trimming of the annotation.

    Declaration
    public TextTrimming TextTrimming { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.TextTrimming

    TextVerticalAlignment

    Gets or sets the vertical alignment of text using in annotation.

    Declaration
    public VerticalAlignment TextVerticalAlignment { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.VerticalAlignment

    VerticalAlignment

    Gets or sets the vertical alignments of annotation.

    Declaration
    public VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.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
    Windows.UI.Xaml.TextWrapping

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved