Sdílet prostřednictvím


Series.ShadowColor Vlastnost

Definice

Získá nebo nastaví barvu stínu řady.

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

Hodnota vlastnosti

Hodnota Color . Výchozí barva je Black.

Atributy

Příklady

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

Poznámky

Získá nebo nastaví barvu stínu řady, která může být na libovolnou platnou hodnotu ARGB (alfa, červená, zelená, modrá).

Alfa hodnotu lze použít k dosažení realistické stín efekt; Zkuste pro stíny použít hodnotu barvy "128,0,0,0".

Pokud chcete implementovat stín, nastavte ShadowOffset vlastnost na jinou hodnotu než nula (0).

Platí pro