Series.ShadowColor 属性

定义

获取或设置序列的阴影颜色。

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

属性值

一个 Color 值。 默认颜色为 Black

属性

示例

' 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;
}

注解

获取或设置序列的阴影颜色,可以是任何有效的 ARGB (alpha、红色、绿色、蓝色) 值。

alpha 值可用于实现逼真的阴影效果;尝试对阴影使用颜色值“128,0,0,0”。

若要实现阴影,请将 ShadowOffset 属性设置为非零值 (0) 。

适用于