Class ImageAnnotation
Provides a light weight UIElement that displays image on chart.
Inheritance
System.Object
ImageAnnotation
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class ImageAnnotation : SingleAnnotation, ICloneable
Constructors
ImageAnnotation()
Declaration
Fields
AngleProperty
The DependencyProperty for Angle property.
Declaration
public static readonly DependencyProperty AngleProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
HorizontalTextAlignmentProperty
Declaration
public static readonly DependencyProperty HorizontalTextAlignmentProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
ImageSourceProperty
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
VerticalTextAlignmentProperty
Declaration
public static readonly DependencyProperty VerticalTextAlignmentProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
X2Property
The DependencyProperty for X2 property.
Declaration
public static readonly DependencyProperty X2Property
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Y2Property
The DependencyProperty for Y2 property.
Declaration
public static readonly DependencyProperty Y2Property
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Properties
Angle
Gets or sets the rotation angle for the Annotation
.
Declaration
public double Angle { get; set; }
Property Value
Type |
Description |
System.Double |
|
HorizontalTextAlignment
Gets or sets the horizontal text alignment.
Declaration
public HorizontalAlignment HorizontalTextAlignment { get; set; }
Property Value
Type |
Description |
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 |
.
|
X2
Gets or sets the X2 value.
Declaration
public object X2 { get; set; }
Property Value
Type |
Description |
System.Object |
|
Y2
Gets or sets the Y2 value.
Declaration
public object Y2 { get; set; }
Property Value
Type |
Description |
System.Object |
|
Methods
CloneAnnotation(Annotation)
Declaration
protected override DependencyObject CloneAnnotation(Annotation annotation)
Parameters
Returns
Type |
Description |
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 |
Description |
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 |
Description |
Windows.Foundation.Point |
|
SetBindings()
Declaration
protected override void SetBindings()
Overrides
UpdateAnnotation()
Declaration
public override void UpdateAnnotation()
Overrides
Implements
Extension Methods
See Also