Class Annotation
Represents an annotation for a diagram element. It can be text, image or any view object.
Inheritance
Implements
Namespace: Syncfusion.SfDiagram.XForms
Assembly: Syncfusion.SfDiagram.XForms.dll
Syntax
public class Annotation : BindableObject, IDisposable
Constructors
Annotation()
Initializes a new instance of the Annotation class.
Declaration
public Annotation()
Fields
AnnotationPositionsProperty
Represents the bindable property of annotation positions.
Declaration
public static readonly BindableProperty AnnotationPositionsProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ContentProperty
Represents the bindable property of content.
Declaration
public static readonly BindableProperty ContentProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
FontFamilyProperty
Represents the bindable property of FontFamily.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
FontSizeProperty
Represents the bindable property of FontSize.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
HorizontalAlignmentProperty
Represents the bindable property of HorizontalAlignment.
Declaration
public static readonly BindableProperty HorizontalAlignmentProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
OffsetXProperty
Represents the bindable property of offsetX.
Declaration
public static readonly BindableProperty OffsetXProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
OffsetYProperty
Represents the bindable property of offsetY.
Declaration
public static readonly BindableProperty OffsetYProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TextBrushProperty
Initializes a new instance of the Annotation class.
Declaration
public static readonly BindableProperty TextBrushProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
VerticalAlignmentProperty
Represents the bindable property of VerticalAlignment.
Declaration
public static readonly BindableProperty VerticalAlignmentProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
AnnotationPositions
Gets or sets the annotation positions.
Declaration
public AnnotationPositions AnnotationPositions { get; set; }
Property Value
Type |
---|
AnnotationPositions |
Content
Gets or sets the content of the annotation.
Declaration
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
FontFamily
Gets or sets the font name for the textual data in the annotation.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that represents font family name. |
FontSize
Gets or sets the size of the font.
Declaration
public double FontSize { get; set; }
Property Value
Type |
---|
System.Double |
HorizontalAlignment
Gets or sets the horizontal alignment of the annotation.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type |
---|
HorizontalAlignment |
OffsetX
Gets or sets the offsetX of the annotation.
Declaration
public double OffsetX { get; set; }
Property Value
Type |
---|
System.Double |
OffsetY
Gets or sets the offsetY of the annotation.
Declaration
public double OffsetY { get; set; }
Property Value
Type |
---|
System.Double |
TextBrush
Gets or sets the text brush for the textual data in the annotation.
Declaration
public Brush TextBrush { get; set; }
Property Value
Type |
---|
Brush |
VerticalAlignment
Gets or sets the vertical Alignment of the annotation.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Type |
---|
VerticalAlignment |
Methods
Dispose()
Method to dispose objects.
Declaration
public void Dispose()