Back to Devexpress

XYDiagramPaneBase.BorderColor Property

corelibraries-devexpress-dot-xtracharts-dot-xydiagrampanebase-4b2e6cbd.md

latest2.6 KB
Original Source

XYDiagramPaneBase.BorderColor Property

Gets or sets the pane’s border color.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Color BorderColor { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property BorderColor As Color

Property Value

TypeDescription
Color

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

|

Remarks

The following image demonstrates how the BorderColor property works.

For more information, refer to Panes.

Example

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

csharp
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;
vb
Dim myPane As 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

BackColor

BorderVisible

Panes

XYDiagramPaneBase Class

XYDiagramPaneBase Members

DevExpress.XtraCharts Namespace