Condividi tramite


Series.ShadowColor Proprietà

Definizione

Ottiene o imposta il colore dell'ombreggiatura di una serie.

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

Valore della proprietà

Valore Color. Il colore predefinito è Black.

Attributi

Esempio

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

Commenti

Ottiene o imposta il colore dell'ombreggiatura di una serie, che può corrispondere a qualsiasi valore ARGB valido (alfa, rosso, verde, blu).

Il valore alfa può essere usato per ottenere un effetto di ombreggiatura realistico; provare a usare il valore di colore "128,0,0,0" per le ombre.

Per implementare un'ombreggiatura, impostare la ShadowOffset proprietà su un valore diverso da zero (0).

Si applica a