menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LineAnnotation - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LineAnnotation

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

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

    LineAnnotation is used to add a line across the chart area.

    Examples
    SfChart chart = new SfChart();
    LineAnnotation line = new LineAnnotation();
    chart.ChartAnnotations.Add(line);

    Constructors

    LineAnnotation()

    Initializes a new instance of the LineAnnotation class.

    Declaration
    public LineAnnotation()

    Fields

    LineCapProperty

    Gets or sets the ChartLineCap enum for line annotation. This is a bindable property.

    Declaration
    public static readonly BindableProperty LineCapProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    LineCap

    Gets or sets the ChartLineCap enum for line annotation. This is a bindable property.

    Declaration
    public ChartLineCap LineCap { get; set; }
    Property Value
    Type Description
    ChartLineCap

    This property takes the LineCap value.

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