Class VerticalLineAnnotation
This class is used to add a vertical line annotation to the SfChart. An instance of this class needs to be added to the Annotations collection.
Inheritance
System.Object
VerticalLineAnnotation
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class VerticalLineAnnotation : StraightLineAnnotation, ICloneable
Remarks
VerticalLineAnnotation is used to draw a vertical line across the chart area.
Constructors
VerticalLineAnnotation()
Declaration
public VerticalLineAnnotation()
Fields
HorizontalTextAlignmentProperty
The DependencyProperty for HorizontalTextAlignment property.
Declaration
public static readonly DependencyProperty HorizontalTextAlignmentProperty
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 |
Properties
HorizontalTextAlignment
Gets or sets the horizontal text alignment.
Declaration
public HorizontalAlignment HorizontalTextAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| Windows.UI.Xaml.HorizontalAlignment | The Windows.UI.Xaml.HorizontalAlignment value. |
VerticalTextAlignment
Gets or sets the vertical text alignment.
Declaration
public VerticalAlignment VerticalTextAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| Windows.UI.Xaml.VerticalAlignment | The Windows.UI.Xaml.VerticalAlignment value. |
Methods
SetTextElementPosition(Point, Point, Size, Point, ContentControl)
Sets the text element position.
Declaration
protected override 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 |
Overrides
UpdateAnnotation()
Updates the annotation
Declaration
public override void UpdateAnnotation()