WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LineAnnotation - WPF API Reference | Syncfusion LineAnnotation class. ">

    Show / Hide Table of Contents

    Class LineAnnotation

    Represents the LineAnnotation class.

    Inheritance
    System.Object
    Annotation
    SingleAnnotation
    ShapeAnnotation
    LineAnnotation
    StraightLineAnnotation
    Implements
    ICloneable
    Inherited Members
    ShapeAnnotation.HorizontalTextAlignmentProperty
    ShapeAnnotation.DraggingModeProperty
    ShapeAnnotation.CanDragProperty
    ShapeAnnotation.CanResizeProperty
    ShapeAnnotation.VerticalTextAlignmentProperty
    ShapeAnnotation.FillProperty
    ShapeAnnotation.Y2Property
    ShapeAnnotation.X2Property
    ShapeAnnotation.StrokeThicknessProperty
    ShapeAnnotation.StrokeProperty
    ShapeAnnotation.StrokeDashArrayProperty
    ShapeAnnotation.StrokeDashCapProperty
    ShapeAnnotation.StrokeDashOffsetProperty
    ShapeAnnotation.StrokeEndLineCapProperty
    ShapeAnnotation.StrokeLineJoinProperty
    ShapeAnnotation.StrokeMiterLimitProperty
    ShapeAnnotation.StrokeStartLineCapProperty
    ShapeAnnotation.x2
    ShapeAnnotation.y2
    ShapeAnnotation.OnDragDelta(AnnotationDragDeltaEventArgs)
    ShapeAnnotation.OnDragCompleted(AnnotationDragCompletedEventArgs)
    ShapeAnnotation.OnDragStarted(EventArgs)
    ShapeAnnotation.GetTextPosition(Size, Point)
    ShapeAnnotation.HorizontalTextAlignment
    ShapeAnnotation.DraggingMode
    ShapeAnnotation.CanDrag
    ShapeAnnotation.CanResize
    ShapeAnnotation.VerticalTextAlignment
    ShapeAnnotation.Fill
    ShapeAnnotation.Y2
    ShapeAnnotation.X2
    ShapeAnnotation.StrokeThickness
    ShapeAnnotation.Stroke
    ShapeAnnotation.StrokeDashArray
    ShapeAnnotation.StrokeDashCap
    ShapeAnnotation.StrokeDashOffset
    ShapeAnnotation.StrokeEndLineCap
    ShapeAnnotation.StrokeLineJoin
    ShapeAnnotation.StrokeMiterLimit
    ShapeAnnotation.StrokeStartLineCap
    ShapeAnnotation.DragStarted
    ShapeAnnotation.DragDelta
    ShapeAnnotation.DragCompleted
    Annotation.TextProperty
    Annotation.EnableEditingProperty
    Annotation.ContentTemplateProperty
    Annotation.EnableClippingProperty
    Annotation.ShowToolTipProperty
    Annotation.ToolTipContentProperty
    Annotation.ToolTipShowDurationProperty
    Annotation.ToolTipTemplateProperty
    Annotation.ToolTipPlacementProperty
    Annotation.CoordinateUnitProperty
    Annotation.XAxisNameProperty
    Annotation.YAxisNameProperty
    Annotation.X1Property
    Annotation.Y1Property
    Annotation.FontSizeProperty
    Annotation.FontFamilyProperty
    Annotation.FontStretchProperty
    Annotation.FontStyleProperty
    Annotation.FontWeightProperty
    Annotation.ForegroundProperty
    Annotation.Clone()
    Annotation.GetRenderedAnnotation()
    Annotation.OnSelected(EventArgs)
    Annotation.OnUnSelected(EventArgs)
    Annotation.CanUpdateRange(Object, Object)
    Annotation.GetElementPosition(Size, Point)
    Annotation.GetElementPosition(FrameworkElement, Point)
    Annotation.IntersectsWith(Rect, Rect)
    Annotation.GetClippingValues(Double, ChartAxis)
    Annotation.SetData()
    Annotation.RotateElement(Double, FrameworkElement)
    Annotation.GetRotatePoint(Double, FrameworkElement, Point)
    Annotation.RotateElement(Double, FrameworkElement, Size)
    Annotation.EnsurePoint(Point, Point)
    Annotation.Text
    Annotation.EnableEditing
    Annotation.ContentTemplate
    Annotation.EnableClipping
    Annotation.ShowToolTip
    Annotation.ToolTipContent
    Annotation.ToolTipShowDuration
    Annotation.ToolTipTemplate
    Annotation.ToolTipPlacement
    Annotation.CoordinateUnit
    Annotation.XAxisName
    Annotation.YAxisName
    Annotation.X1
    Annotation.Y1
    Annotation.FontSize
    Annotation.FontFamily
    Annotation.FontStretch
    Annotation.FontStyle
    Annotation.FontWeight
    Annotation.Foreground
    Annotation.x1
    Annotation.y1
    Annotation.IsUiCleared
    Annotation.AnnotationElement
    Annotation.TextElementCanvas
    Annotation.TextElement
    Annotation.RotatedTextRect
    Annotation.MouseRightButtonDown
    Annotation.MouseRightButtonUp
    Annotation.MouseUp
    Annotation.MouseDown
    Annotation.MouseMove
    Annotation.MouseLeftButtonDown
    Annotation.MouseLeftButtonUp
    Annotation.MouseLeave
    Annotation.Selected
    Annotation.UnSelected
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public class LineAnnotation : ShapeAnnotation, ICloneable

    Constructors

    LineAnnotation()

    Declaration
    public LineAnnotation()

    Fields

    arrowLine

    Declaration
    protected ArrowLine arrowLine
    Field Value
    Type Description
    ArrowLine

    GrabExtentProperty

    Declaration
    public static readonly DependencyProperty GrabExtentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    LineAnnotionCapProperty

    The DependencyProperty for LineCap property.

    Declaration
    public static readonly DependencyProperty LineAnnotionCapProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ShowLineProperty

    The DependencyProperty for ShowLine property.

    Declaration
    public static readonly DependencyProperty ShowLineProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    GrabExtent

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

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

    HorizontalChange

    Gets or sets the horizontal change.

    Declaration
    protected double HorizontalChange { get; set; }
    Property Value
    Type Description
    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 Description
    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
    System.Windows.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
    System.Windows.Point point

    The first point.

    System.Windows.Point point2

    The second point.

    System.Windows.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
    System.Windows.Size desiredSize

    The desired size.

    System.Windows.Point originalPosition

    The original position.

    System.Windows.Size textSize

    The text size.

    Returns
    Type Description
    System.Windows.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.

    System.Windows.Controls.Primitives.DragCompletedEventArgs e

    The drag completed event arguments.

    SetBindings()

    Sets the binding between the annotation and System.Windows.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
    System.Windows.Point point

    The first point.

    System.Windows.Point point2

    The second point.

    System.Windows.Size desiredSize

    The desired size.

    System.Windows.Point positionedPoint

    The position point.

    System.Windows.Controls.ContentControl textElement

    The text element.

    UpdateAnnotation()

    Updates the annotation.

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

    Implements

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