menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartAreaBorder - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartAreaBorder

    Provides options to customize the chart area border.

    Inheritance
    System.Object
    ChartSubComponent
    ChartDefaultBorder
    ChartAreaBorder
    Inherited Members
    ChartDefaultBorder.Color
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartAreaBorder : ChartDefaultBorder, ISubcomponentTracker

    Constructors

    ChartAreaBorder()

    Declaration
    public ChartAreaBorder()

    Properties

    Width

    Gets or sets the width of the border surrounding the chart area.

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

    A double value representing the width of the chart area border, measured in pixels. The default value is 0.5 pixel, providing a subtle border appearance.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    This property accepts numerical values to precisely control the border width.

    Examples
    // This example demonstrates how to set the border width for the chart area in the chart control:
    <SfChart>
        <ChartArea>
            <ChartAreaBorder Color="blue" Width="2" />
        </ChartArea>
    </SfChart>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved