Back to Devexpress

Shadow Class

corelibraries-devexpress-dot-xtracharts-51083e39.md

latest4.6 KB
Original Source

Shadow Class

Defines the shadow settings.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public sealed class Shadow :
    ChartElement
vb
Public NotInheritable Class Shadow
    Inherits ChartElement

The following members return Shadow objects:

Show 19 links

Remarks

The Shadow class is used to contain the shadow settings. The properties exposed by this class allow you to customize the shadow color (Shadow.Color), size (Shadow.Size) and visibility (Shadow.Visible).

An object of the Shadow type can be accessed via the Shadow properties of different chart elements (for instance, the legend‘s LegendBase.Shadow property, a pane‘s XYDiagramPaneBase.Shadow property, a label’s SeriesLabelBase.Shadow property, etc).

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

Inheritance

Object ChartElement Shadow

See Also

Shadow Members

DevExpress.XtraCharts Namespace