Back to Devexpress

Shadow.Color Property

corelibraries-devexpress-dot-xtracharts-dot-shadow.md

latest3.6 KB
Original Source

Shadow.Color Property

Gets or sets the shadow’s color.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public Color Color { get; set; }
vb
Public Property Color As Color

Property Value

TypeDescription
Color

A Color structure which specifies the shadow’s color.

|

Remarks

The following image demonstrates how the Color property works.

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Color property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-implement-custom-drawing-for-the-chartcontrol-that-is-bound-to-the-pivotgrid-control/CS/WindowsFormsApplication8/Form1.cs#L52

csharp
options.FillStyle.FillMode = FillMode.Hatch;
    options.Shadow.Color = Color.Azure;
}

winforms-implement-custom-drawing-for-the-chartcontrol-that-is-bound-to-the-pivotgrid-control/VB/WindowsFormsApplication8/Form1.vb#L41

vb
options.FillStyle.FillMode = FillMode.Hatch
    options.Shadow.Color = Color.Azure
End Sub

See Also

Visible

Size

Shadow Class

Shadow Members

DevExpress.XtraCharts Namespace