Series.ShadowColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.