Back to Devexpress

XYDiagramPaneBase.Shadow Property

corelibraries-devexpress-dot-xtracharts-dot-xydiagrampanebase-baa6fcc0.md

latest2.6 KB
Original Source

XYDiagramPaneBase.Shadow Property

Gets the diagram pane’s shadow settings.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Shadow Shadow { get; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property Shadow As Shadow

Property Value

TypeDescription
Shadow

A Shadow object which provides the settings used to paint the diagram pane’s shadow.

|

Remarks

Use the Shadow property to specify the shadow’s color, size and visibility.

The following image demonstrates how the Shadow 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

Panes

XYDiagramPaneBase Class

XYDiagramPaneBase Members

DevExpress.XtraCharts Namespace