Język

Series.ShadowColor Właściwość

Definicja

Pobiera lub ustawia kolor cienia serii.

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

Wartość właściwości

Wartość Color. Domyślnym kolorem jest Black.

Atrybuty

Przykłady

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

Uwagi

Pobiera lub ustawia kolor cienia serii, który może mieć dowolną prawidłową wartość ARGB (alfa, czerwony, zielony, niebieski).

Wartość alfa może służyć do osiągnięcia realistycznego efektu cienia; Spróbuj użyć wartości koloru "128,0,0,0" dla cieni.

Aby zaimplementować cień, ustaw ShadowOffset właściwość na wartość inną niż zero (0).

Dotyczy