menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ErrorBarCapLineStyle - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ErrorBarCapLineStyle

    Represents the cap style for the ErrorBarSeries

    Inheritance
    System.Object
    ChartLineStyle
    ErrorBarCapLineStyle
    Inherited Members
    ChartLineStyle.Stroke
    ChartLineStyle.StrokeDashArray
    ChartLineStyle.StrokeDashArrayProperty
    ChartLineStyle.StrokeProperty
    ChartLineStyle.StrokeWidth
    ChartLineStyle.StrokeWidthProperty
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class ErrorBarCapLineStyle : ChartLineStyle, IThemeElement

    Constructors

    ErrorBarCapLineStyle()

    Initializes a new instance of the ErrorBarCapLineStyle class.

    Declaration
    public ErrorBarCapLineStyle()

    Fields

    CapLineSizeProperty

    Identifies the CapLineSize bindable property.

    Declaration
    public static readonly BindableProperty CapLineSizeProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    IsVisibleProperty

    Identifies the IsVisible bindable property.

    Declaration
    public static readonly BindableProperty IsVisibleProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    CapLineSize

    Gets or sets the stroke cap size to customize the size of the stroke caps.

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

    It accepts System.Double values, and the default value is 10

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
        <!-- ... Eliminated for simplicity-->
              <chart:ErrorBarSeries ItemsSource="{Binding ThermalExpansion}"   
                                                        XBindingPath="Name"   
                                                        YBindingPath="Value" />
                    <chart.ErrorBarSeries.HorizontalCapLineStyle>
                                   <chart:ErrorBarCapLineStyle CapLineSize=15 />
                    </chart.ErrorBarSeries.HorizontalCapLineStyle>                                      
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
        // Eliminated for simplicity
        ErrorBarSeries errorBarSeries = new ErrorBarSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "Name",
              YBindingPath = "Value",
        };
        errorBarSeries.HorizontalCapLineStyle = new ErrorBarCapLineStyle()
        {
             CapLineSize=15;
         }
        chart.Series.Add(errorBarSeries);

    IsVisible

    Gets or sets the stroke cap visibility to customize the stroke cap appearance.

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

    It accepts System.Boolean, and the default is true

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
        <!-- ... Eliminated for simplicity-->
              <chart:ErrorBarSeries ItemsSource="{Binding ThermalExpansion}"   
                                                        XBindingPath="Name"   
                                                        YBindingPath="Value" />
                    <chart.ErrorBarSeries.HorizontalCapLineStyle>
                                   <chart:ErrorBarCapLineStyle IsVisible="False" />
                    </chart.ErrorBarSeries.HorizontalCapLineStyle>                                      
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
        // Eliminated for simplicity
        ErrorBarSeries errorBarSeries = new ErrorBarSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "Name",
              YBindingPath = "Value",
        };
        errorBarSeries.HorizontalCapLineStyle = new ErrorBarCapLineStyle()
        {
             IsVisible=False;
         }
        chart.Series.Add(errorBarSeries);
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved