Edit

Share via


Series.ShadowColor Property

Definition

Gets or sets the shadow color of a series.

public:
 property System::Drawing::Color ShadowColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Drawing.Color ShadowColor { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.ShadowColor : System.Drawing.Color with get, set
Public Property ShadowColor As Color

Property Value

A Color value. The default color is Black.

Attributes

Examples

' Set series shadow color and offset  
Public Sub SetSeriesShadow()  
     Chart1.Series("Default"}.ShadowColor = Color.Blue  
     Chart1.Series("Default"}.ShadowOffset = 2  
End Sub 'SetSeriesShadow  
// Set series shadow color and offset   
public void SetSeriesShadow()  
{      
    Chart1.Series("Default"}.ShadowColor = Color.Blue;  
    Chart1.Series["Default"].ShadowOffset = 2;  
}  

Remarks

Gets or sets the shadow color of a series, which can be to any valid ARGB (alpha, red, green, blue) value.

The alpha value can be used to achieve a realistic shadow effect; try using a color value of "128,0,0,0" for shadows.

To implement a shadow, set the ShadowOffset property to a value other than zero (0).

Applies to