menu

UWP

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

    Show / Hide Table of Contents

    Class ImageAnnotation

    Provides a light weight UIElement that displays image on chart.

    Inheritance
    System.Object
    Annotation
    SingleAnnotation
    ImageAnnotation
    Implements
    ICloneable
    Inherited Members
    Annotation.AnnotationElement
    Annotation.CanUpdateRange(Object, Object)
    Annotation.Clone()
    Annotation.ContentTemplate
    Annotation.ContentTemplateProperty
    Annotation.CoordinateUnit
    Annotation.CoordinateUnitProperty
    Annotation.EnableClipping
    Annotation.EnableClippingProperty
    Annotation.EnableEditing
    Annotation.EnableEditingProperty
    Annotation.EnsurePoint(Point, Point)
    Annotation.FontFamily
    Annotation.FontFamilyProperty
    Annotation.FontSize
    Annotation.FontSizeProperty
    Annotation.FontStretch
    Annotation.FontStretchProperty
    Annotation.FontStyle
    Annotation.FontStyleProperty
    Annotation.FontWeight
    Annotation.FontWeightProperty
    Annotation.Foreground
    Annotation.ForegroundProperty
    Annotation.GetClippingValues(Double, ChartAxis)
    Annotation.GetElementPosition(FrameworkElement, Point)
    Annotation.GetElementPosition(Size, Point)
    Annotation.GetRenderedAnnotation()
    Annotation.GetRotatePoint(Double, FrameworkElement, Point)
    Annotation.IntersectsWith(Rect, Rect)
    Annotation.IsUiCleared
    Annotation.OnSelected(EventArgs)
    Annotation.OnUnSelected(EventArgs)
    Annotation.PointerMoved
    Annotation.PointerPressed
    Annotation.PointerReleased
    Annotation.RotatedTextRect
    Annotation.RotateElement(Double, FrameworkElement)
    Annotation.RotateElement(Double, FrameworkElement, Size)
    Annotation.Selected
    Annotation.SetData()
    Annotation.ShowToolTip
    Annotation.ShowToolTipProperty
    Annotation.Text
    Annotation.TextElement
    Annotation.TextElementCanvas
    Annotation.TextProperty
    Annotation.ToolTipContent
    Annotation.ToolTipContentProperty
    Annotation.ToolTipPlacement
    Annotation.ToolTipPlacementProperty
    Annotation.ToolTipShowDuration
    Annotation.ToolTipShowDurationProperty
    Annotation.ToolTipTemplate
    Annotation.ToolTipTemplateProperty
    Annotation.UnSelected
    Annotation.x1
    Annotation.X1
    Annotation.X1Property
    Annotation.XAxisName
    Annotation.XAxisNameProperty
    Annotation.y1
    Annotation.Y1
    Annotation.Y1Property
    Annotation.YAxisName
    Annotation.YAxisNameProperty
    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
    Annotation.CloneAnnotation(Annotation)

    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
    Annotation.SetBindings()

    UpdateAnnotation()

    Updates the annotation

    Declaration
    public override void UpdateAnnotation()
    Overrides
    Annotation.UpdateAnnotation()

    Implements

    ICloneable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    SingleAnnotation
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved