Class LineAnnotation
Represents the LineAnnotation class.
Inheritance
Implements
Inherited Members
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 |
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 |
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
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
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
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()