Class ImageAnnotation
Provides a light weight UIElement that displays image on chart.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.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 |
---|
System.Windows.DependencyProperty |
HorizontalTextAlignmentProperty
The DependencyProperty for HorizontalTextAlignment property.
Declaration
public static readonly DependencyProperty HorizontalTextAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ImageSourceProperty
The DependencyProperty for ImageSource property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
VerticalTextAlignmentProperty
The DependencyProperty for VerticalTextAlignment property.
Declaration
public static readonly DependencyProperty VerticalTextAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
X2Property
The DependencyProperty for X2 property.
Declaration
public static readonly DependencyProperty X2Property
Field Value
Type |
---|
System.Windows.DependencyProperty |
Y2Property
The DependencyProperty for Y2 property.
Declaration
public static readonly DependencyProperty Y2Property
Field Value
Type |
---|
System.Windows.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 |
---|---|
System.Windows.HorizontalAlignment | System.Windows.HorizontalAlignment. |
ImageSource
Gets or sets the source for the image to be added as annotation.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.ImageSource | This accepts System.Windows.Media.ImageSource as value. |
VerticalTextAlignment
Gets or sets the vertical text alignment.
Declaration
public VerticalAlignment VerticalTextAlignment { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.VerticalAlignment | System.Windows.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 |
---|
System.Windows.DependencyObject |
Overrides
GetTextPosition(Size, Point)
Declaration
protected Point GetTextPosition(Size desiredSize, Point originalPosition)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | desiredSize | |
System.Windows.Point | originalPosition |
Returns
Type |
---|
System.Windows.Point |
GetTextPosition(Size, Point, Size)
Declaration
protected Point GetTextPosition(Size desiredSize, Point originalPosition, Size textSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | desiredSize | |
System.Windows.Point | originalPosition | |
System.Windows.Size | textSize |
Returns
Type |
---|
System.Windows.Point |
SetBindings()
Declaration
protected override void SetBindings()
Overrides
UpdateAnnotation()
Updates the annotation
Declaration
public override void UpdateAnnotation()