Class ImageAnnotation
Provides a light weight UIElement that displays image on chart.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class ImageAnnotation : SingleAnnotation, ICloneable
Constructors
ImageAnnotation()
Constructor
Declaration
public ImageAnnotation()
Fields
AngleProperty
The DependencyProperty for Angle property.
Declaration
public static readonly DependencyProperty AngleProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
HorizontalTextAlignmentProperty
The DependencyProperty for HorizontalTextAlignment property.
Declaration
public static readonly DependencyProperty HorizontalTextAlignmentProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ImageSourceProperty
The DependencyProperty for ImageSource property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
VerticalTextAlignmentProperty
The DependencyProperty for VerticalTextAlignment property.
Declaration
public static readonly DependencyProperty VerticalTextAlignmentProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
X2Property
The DependencyProperty for X2 property.
Declaration
public static readonly DependencyProperty X2Property
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Y2Property
The DependencyProperty for Y2 property.
Declaration
public static readonly DependencyProperty Y2Property
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
Angle
Gets or sets the rotation angle for the Annotation
.
Declaration
public double Angle { get; set; }
Property Value
Type |
---|
System.Double |
HorizontalTextAlignment
Gets or sets the horizontal text alignment.
Declaration
public HorizontalAlignment HorizontalTextAlignment { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.HorizontalAlignment | Windows.UI.Xaml.HorizontalAlignment. |
ImageSource
Gets or sets the source for the image to be added as annotation.
Declaration
public string ImageSource { get; set; }
Property Value
Type | Description |
---|---|
System.String | This accepts image source path as System.String. |
VerticalTextAlignment
Gets or sets the vertical text alignment.
Declaration
public VerticalAlignment VerticalTextAlignment { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.VerticalAlignment | Windows.UI.Xaml.VerticalAlignment. |
X2
Gets or sets the X2 value.
Declaration
public object X2 { get; set; }
Property Value
Type |
---|
System.Object |
Y2
Gets or sets the Y2 value.
Declaration
public object Y2 { get; set; }
Property Value
Type |
---|
System.Object |
Methods
CloneAnnotation(Annotation)
Declaration
protected override DependencyObject CloneAnnotation(Annotation annotation)
Parameters
Type | Name | Description |
---|---|---|
Annotation | annotation |
Returns
Type |
---|
Windows.UI.Xaml.DependencyObject |
Overrides
GetTextPosition(Size, Point)
Declaration
protected Point GetTextPosition(Size desiredSize, Point originalPosition)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | desiredSize | |
Windows.Foundation.Point | originalPosition |
Returns
Type |
---|
Windows.Foundation.Point |
GetTextPosition(Size, Point, Size)
Declaration
protected Point GetTextPosition(Size desiredSize, Point originalPosition, Size textSize)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | desiredSize | |
Windows.Foundation.Point | originalPosition | |
Windows.Foundation.Size | textSize |
Returns
Type |
---|
Windows.Foundation.Point |
SetBindings()
Declaration
protected override void SetBindings()
Overrides
UpdateAnnotation()
Updates the annotation
Declaration
public override void UpdateAnnotation()