menu

UWP

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

    Show / Hide Table of Contents

    Class LineAnnotation

    Represents the LineAnnotation class.

    Inheritance
    System.Object
    Annotation
    SingleAnnotation
    ShapeAnnotation
    LineAnnotation
    StraightLineAnnotation
    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
    ShapeAnnotation.CanDrag
    ShapeAnnotation.CanDragProperty
    ShapeAnnotation.CanResize
    ShapeAnnotation.CanResizeProperty
    ShapeAnnotation.DragCompleted
    ShapeAnnotation.DragDelta
    ShapeAnnotation.DraggingMode
    ShapeAnnotation.DraggingModeProperty
    ShapeAnnotation.DragStarted
    ShapeAnnotation.Fill
    ShapeAnnotation.FillProperty
    ShapeAnnotation.GetTextPosition(Size, Point)
    ShapeAnnotation.HorizontalTextAlignment
    ShapeAnnotation.HorizontalTextAlignmentProperty
    ShapeAnnotation.OnDragCompleted(AnnotationDragCompletedEventArgs)
    ShapeAnnotation.OnDragDelta(AnnotationDragDeltaEventArgs)
    ShapeAnnotation.OnDragStarted(EventArgs)
    ShapeAnnotation.Stroke
    ShapeAnnotation.StrokeDashArray
    ShapeAnnotation.StrokeDashArrayProperty
    ShapeAnnotation.StrokeDashCap
    ShapeAnnotation.StrokeDashCapProperty
    ShapeAnnotation.StrokeDashOffset
    ShapeAnnotation.StrokeDashOffsetProperty
    ShapeAnnotation.StrokeEndLineCap
    ShapeAnnotation.StrokeEndLineCapProperty
    ShapeAnnotation.StrokeLineJoin
    ShapeAnnotation.StrokeLineJoinProperty
    ShapeAnnotation.StrokeMiterLimit
    ShapeAnnotation.StrokeMiterLimitProperty
    ShapeAnnotation.StrokeProperty
    ShapeAnnotation.StrokeStartLineCap
    ShapeAnnotation.StrokeStartLineCapProperty
    ShapeAnnotation.StrokeThickness
    ShapeAnnotation.StrokeThicknessProperty
    ShapeAnnotation.VerticalTextAlignment
    ShapeAnnotation.VerticalTextAlignmentProperty
    ShapeAnnotation.x2
    ShapeAnnotation.X2
    ShapeAnnotation.X2Property
    ShapeAnnotation.y2
    ShapeAnnotation.Y2
    ShapeAnnotation.Y2Property
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public class LineAnnotation : ShapeAnnotation, ICloneable

    Constructors

    LineAnnotation()

    Declaration
    public LineAnnotation()

    Fields

    arrowLine

    Declaration
    protected ArrowLine arrowLine
    Field Value
    Type
    ArrowLine

    GrabExtentProperty

    Declaration
    public static readonly DependencyProperty GrabExtentProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    LineCapProperty

    The DependencyProperty for LineCap property.

    Declaration
    public static readonly DependencyProperty LineCapProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShowLineProperty

    The DependencyProperty for ShowLine property.

    Declaration
    public static readonly DependencyProperty ShowLineProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    GrabExtent

    Gets or sets the grab extent for the dragging line annotation.

    Declaration
    public double GrabExtent { get; set; }
    Property Value
    Type
    System.Double

    HorizontalChange

    Gets or sets the horizontal change.

    Declaration
    protected double HorizontalChange { get; set; }
    Property Value
    Type
    System.Double

    LineCap

    Gets or sets the line cap for the LineAnnotation.

    Declaration
    public LineCap LineCap { get; set; }
    Property Value
    Type Description
    LineCap

    LineCap

    ShowLine

    Gets or sets a value indicating whether to show the line or not.

    Declaration
    public bool ShowLine { get; set; }
    Property Value
    Type Description
    System.Boolean

    if true, Line will be visible.

    VerticalChange

    Gets or sets the vertical change.

    Declaration
    protected double VerticalChange { get; set; }
    Property Value
    Type
    System.Double

    Methods

    CloneAnnotation(Annotation)

    Clones the annotation.

    Declaration
    protected override DependencyObject CloneAnnotation(Annotation annotation)
    Parameters
    Type Name Description
    Annotation annotation

    The annotation.

    Returns
    Type Description
    Windows.UI.Xaml.DependencyObject

    Returns the cloned annotation.

    Overrides
    ShapeAnnotation.CloneAnnotation(Annotation)

    DrawLine(Point, Point, Shape)

    Draws the line.

    Declaration
    protected void DrawLine(Point point, Point point2, Shape shape)
    Parameters
    Type Name Description
    Windows.Foundation.Point point

    The first point.

    Windows.Foundation.Point point2

    The second point.

    Windows.UI.Xaml.Shapes.Shape shape

    The shape to be used.

    GetTextPosition(Size, Point, Size)

    Gets the text position.

    Declaration
    protected override Point GetTextPosition(Size desiredSize, Point originalPosition, Size textSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size desiredSize

    The desired size.

    Windows.Foundation.Point originalPosition

    The original position.

    Windows.Foundation.Size textSize

    The text size.

    Returns
    Type Description
    Windows.Foundation.Point

    Returns the text position after the alignment.

    Overrides
    ShapeAnnotation.GetTextPosition(Size, Point, Size)

    OnDragCompleted(Object, DragCompletedEventArgs)

    Updates the drag completed interactions.

    Declaration
    protected virtual void OnDragCompleted(object sender, DragCompletedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The sender object.

    Windows.UI.Xaml.Controls.Primitives.DragCompletedEventArgs e

    The drag completed event arguments.

    SetBindings()

    Sets the binding between the annotation and Windows.UI.Xaml.UIElement.

    Declaration
    protected override void SetBindings()
    Overrides
    ShapeAnnotation.SetBindings()

    SetTextElementPosition(Point, Point, Size, Point, ContentControl)

    Sets the text element position.

    Declaration
    protected virtual void SetTextElementPosition(Point point, Point point2, Size desiredSize, Point positionedPoint, ContentControl textElement)
    Parameters
    Type Name Description
    Windows.Foundation.Point point

    The first point.

    Windows.Foundation.Point point2

    The second point.

    Windows.Foundation.Size desiredSize

    The desired size.

    Windows.Foundation.Point positionedPoint

    The position point.

    Windows.UI.Xaml.Controls.ContentControl textElement

    The text element.

    UpdateAnnotation()

    Updates the annotation.

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

    Implements

    ICloneable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved