Series.ShadowOffset Property

.NET Framework (current version)

Gets or sets the shadow offset, in pixels, of a series.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public int ShadowOffset { get; set; }

Property Value

Type: System.Int32

An integer value that represents the shadow offset of the series, in pixels.

To implement shadowing, use a value other than zero (0). A positive value will result in a shadow that shifts down and to the right. A negative value will result in a shadow that shifts up and to the left.

The following code example sets the visual attributes of a series.

// Set series shadow offset 
public void SetSeriesShadowOffset ()
    Chart1.Series["Default"].ShadowOffset = 2;

.NET Framework
Available since 4.0
Return to top