menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VerticalLineAnnotation - API Reference

    Show / Hide Table of Contents

    Class VerticalLineAnnotation

    This class is used to add a vertical line annotation in SfChart. An instance of this class need to be added to ChartAnnotations collection.

    Inheritance
    System.Object
    ChartAnnotation
    ShapeAnnotation
    LineAnnotation
    VerticalLineAnnotation
    Inherited Members
    LineAnnotation.LineCapProperty
    LineAnnotation.LineCap
    ShapeAnnotation.X2Property
    ShapeAnnotation.Y2Property
    ShapeAnnotation.FillColorProperty
    ShapeAnnotation.StrokeColorProperty
    ShapeAnnotation.StrokeWidthProperty
    ShapeAnnotation.StrokeDashArrayProperty
    ShapeAnnotation.TextProperty
    ShapeAnnotation.LabelStyleProperty
    ShapeAnnotation.X2
    ShapeAnnotation.Y2
    ShapeAnnotation.FillColor
    ShapeAnnotation.StrokeColor
    ShapeAnnotation.StrokeWidth
    ShapeAnnotation.StrokeDashArray
    ShapeAnnotation.Text
    ShapeAnnotation.LabelStyle
    ChartAnnotation.X1Property
    ChartAnnotation.Y1Property
    ChartAnnotation.XAxisNameProperty
    ChartAnnotation.YAxisNameProperty
    ChartAnnotation.CoordinateUnitProperty
    ChartAnnotation.IsVisibleProperty
    ChartAnnotation.OnTouchDown(Single, Single)
    ChartAnnotation.OnTouchMove(Single, Single)
    ChartAnnotation.OnTouchUp(Single, Single)
    ChartAnnotation.Chart
    ChartAnnotation.X1
    ChartAnnotation.Y1
    ChartAnnotation.XAxisName
    ChartAnnotation.YAxisName
    ChartAnnotation.CoordinateUnit
    ChartAnnotation.IsVisible
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class VerticalLineAnnotation : LineAnnotation, IThemeElement
    Remarks

    VerticalLineAnnotation is used to add a vertical line across the chart area.

    Examples
    SfChart chart = new SfChart();
    VerticalLineAnnotation verticalLine = new VerticalLineAnnotation();
    chart.ChartAnnotations.Add(verticalLine);

    Constructors

    VerticalLineAnnotation()

    Initializes a new instance of the VerticalLineAnnotation class.

    Declaration
    public VerticalLineAnnotation()

    Fields

    AxisLabelStyleProperty

    Gets the customized style for the annotation axis label by using the ChartLabelStyle. This is a bindable property.

    Declaration
    public static readonly BindableProperty AxisLabelStyleProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ShowAxisLabelProperty

    Gets or sets a value indicating whether axis label is enabled in the annotation. This is a bindable property.

    Declaration
    public static readonly BindableProperty ShowAxisLabelProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    AxisLabelStyle

    Gets or sets the customized style for the annotation axis label by using the ChartLabelStyle and ChartAxisLabelStyle. This is a bindable property.

    Declaration
    public ChartLabelStyle AxisLabelStyle { get; set; }
    Property Value
    Type Description
    ChartLabelStyle

    This property takes the ChartLabelStyle and ChartAxisLabelStyle as its value.

    Remarks

    AxisLabelStyle in vertical line annotation is customized into ChartLabelStyle and ChartAxisLabelStyle style .

    ShowAxisLabel

    Gets or sets a value indicating whether axis label is enabled in the annotation. This is a bindable property.

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

    This property takes the bool value.

    Methods

    OnBindingContextChanged()

    Override this method to execute an action when the BindingContext changes.

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

    OnParentSet()

    Declaration
    protected override void OnParentSet()
    Overrides
    ShapeAnnotation.OnParentSet()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved