Class StraightLineAnnotation
This class is used to add a line annotation to the SfChart. An instance of this class needs to be added to the Annotations collection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public abstract class StraightLineAnnotation : LineAnnotation, ICloneable
Remarks
StraightLineAnnotation is used to draw a straight line across the chart area.
Constructors
StraightLineAnnotation()
Constructor
Declaration
public StraightLineAnnotation()
Fields
AxisLabelTemplateProperty
The DependencyProperty for AxisLabelTemplate property.
Declaration
public static readonly DependencyProperty AxisLabelTemplateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowAxisLabelProperty
The Dependencyproperty for ShowAxisLabel property.
Declaration
public static readonly DependencyProperty ShowAxisLabelProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
Properties
AxisLabelTemplate
Gets or sets the custom template for the axis label.
Declaration
public DataTemplate AxisLabelTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| Windows.UI.Xaml.DataTemplate | Windows.UI.Xaml.DataTemplate |
ShowAxisLabel
Gets or sets a value indicating whether to enable or disable the annotation label displaying in axis.
Declaration
public bool ShowAxisLabel { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Methods
SetAxisMarkerValue(Object, Object, Object, Object, AxisMode)
Sets the axis marker values and associated axis metadata based on the provided coordinates and axis mode.
Declaration
protected void SetAxisMarkerValue(object X1, object X2, object Y1, object Y2, AxisMode axisMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | X1 | |
| System.Object | X2 | |
| System.Object | Y1 | |
| System.Object | Y2 | |
| AxisMode | axisMode |
Events
DragCompleted
Occurs when annotation drag is completed.
Declaration
public event EventHandler<AnnotationDragCompletedEventArgs> DragCompleted
Event Type
| Type |
|---|
| System.EventHandler<AnnotationDragCompletedEventArgs> |
DragDelta
Occurs while dragging the annotation.
Declaration
public event EventHandler<AnnotationDragDeltaEventArgs> DragDelta
Event Type
| Type |
|---|
| System.EventHandler<AnnotationDragDeltaEventArgs> |
DragStarted
Occurs when annotation drag is started.
Declaration
public event EventHandler DragStarted
Event Type
| Type |
|---|
| System.EventHandler |
Selected
Occurs when Syncfusion.UI.Xaml.Charts.Annotation becomes selected.
Declaration
public event EventHandler Selected
Event Type
| Type |
|---|
| System.EventHandler |
UnSelected
Occurs when Syncfusion.UI.Xaml.Charts.Annotation becomes unselected.
Declaration
public event EventHandler UnSelected
Event Type
| Type |
|---|
| System.EventHandler |