Skip to main content

XYDiagramPaneBase.BorderColor Property

Gets or sets the pane’s border color.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
[XtraSerializableProperty]
public Color BorderColor { get; set; }

Property Value

Type Description
Color

A Color structure which specifies the pane’s border color.

Remarks

The following image demonstrates how the BorderColor property works.

Pane_Border

For more information, refer to Panes.

Example

This example demonstrates the possibilities of customizing a chart diagram‘s panes‘ appearance at runtime.

XYDiagramPane myPane = new XYDiagramPane("The Pane's Name");

myPane.BackColor = Color.Aqua;
myPane.FillStyle.FillMode = FillMode.Empty;

myPane.BorderVisible = true;
myPane.BorderColor = Color.Blue;

myPane.Shadow.Visible = true;
myPane.Shadow.Color = Color.LightGray;
myPane.Shadow.Size = 2;
See Also