alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ChartLineStyle

    Represents the chart line style class that can be used to customize the axis line and grid lines.

    Inheritance
    object
    ChartLineStyle
    ConnectorLineStyle
    ErrorBarCapLineStyle
    ErrorBarLineStyle
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class ChartLineStyle : Element
    Remarks

    It provides more options to customize the chart lines.

    Stroke - To customize the stroke color, refer to this Stroke property.

    StrokeWidth - To modify the stroke width, refer to this StrokeWidth property.

    StrokeDashArray - To customize the line with dashes and gaps, refer to this StrokeDashArray property.

    Constructors

    ChartLineStyle()

    Initializes a new instance of the ChartLineStyle.

    Declaration
    public ChartLineStyle()

    Fields

    StrokeDashArrayProperty

    Identifies the StrokeDashArray bindable property.

    Declaration
    public static readonly BindableProperty StrokeDashArrayProperty
    Field Value
    Type
    BindableProperty

    StrokeProperty

    Identifies the Stroke bindable property.

    Declaration
    public static readonly BindableProperty StrokeProperty
    Field Value
    Type
    BindableProperty

    StrokeWidthProperty

    Identifies the StrokeWidth bindable property.

    Declaration
    public static readonly BindableProperty StrokeWidthProperty
    Field Value
    Type
    BindableProperty

    Properties

    Stroke

    Gets or sets a value to customize the stroke color of the chart lines.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type Description
    Brush

    It accepts Microsoft.Maui.Controls.Brush values.

    StrokeDashArray

    Gets or sets a value to customize the appearance of the chart lines.

    Declaration
    public DoubleCollection StrokeDashArray { get; set; }
    Property Value
    Type Description
    DoubleCollection

    It accepts Microsoft.Maui.Controls.DoubleCollection values.

    StrokeWidth

    Gets or sets a value that indicates the width of the chart lines.

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

    It accepts double values and the defaule value is 1.

    Remarks

    The value needs to be greater than zero.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved