menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class ChartLineStyle

    Serves as a base class for all types of line style class. This class provides options to customize the line by applying stroke color, stroke width, etc.

    Inheritance
    System.Object
    ChartLineStyle
    ConnectorLineStyle
    ErrorBarLineStyle
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class ChartLineStyle : Element, IThemeElement

    Constructors

    ChartLineStyle()

    Initializes a new instance of the ChartLineStyle class.

    Declaration
    public ChartLineStyle()

    Fields

    StrokeColorProperty

    Gets or sets a stroke color for axis/grid lines. This is a bindable property.

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

    StrokeDashArrayProperty

    Gets or sets the dash array for the line. This is a bindable property.

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

    StrokeWidthProperty

    Gets or sets the width of the line. This is a bindable property.

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

    Properties

    StrokeColor

    Gets or sets a stroke color for axis/grid lines. This is a bindable property.

    Declaration
    public Color StrokeColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Xamarin.Forms.Color value.

    StrokeDashArray

    Gets or sets the dash array for the line. This is a bindable property.

    Declaration
    public double[] StrokeDashArray { get; set; }
    Property Value
    Type Description
    System.Double[]

    This property takes the double array as its value.

    StrokeWidth

    Gets or sets the width of the line. This property is used to change the stroke width of the line. This is a bindable property.

    Declaration
    public double StrokeWidth { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the double value.

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