Legend.BackGradientStyle Propriedade

Definição

Obtém ou define a orientação do gradiente da tela de fundo de uma legenda.Gets or sets the orientation for the background gradient of a legend. Também determina se um gradiente é usado.Also determines whether a gradient is used.

public:
 property System::Web::UI::DataVisualization::Charting::GradientStyle BackGradientStyle { System::Web::UI::DataVisualization::Charting::GradientStyle get(); void set(System::Web::UI::DataVisualization::Charting::GradientStyle value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Web.UI.DataVisualization.Charting.GradientStyle BackGradientStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.BackGradientStyle : System.Web.UI.DataVisualization.Charting.GradientStyle with get, set
Public Property BackGradientStyle As GradientStyle

Valor da propriedade

GradientStyle

Uma GradientStyle enumeração que representa a orientação do gradiente de plano de fundo de uma legenda.A GradientStyle enumeration that represents the orientation for the background gradient of a legend. O valor padrão é None.The default value is None.

Atributos

Comentários

Use a BackGradientStyle propriedade para determinar se uma legenda exibirá um gradiente e para determinar a orientação do gradiente, se um for usado.Use the BackGradientStyle property to determine whether a legend will display a gradient, and to determine the orientation of the gradient if one is used.

Para obter uma lista de padrões disponíveis, consulte a GradientStyle enumeração.For a listing of available patterns, refer to the GradientStyle enumeration.

Para usar cores de gradiente:To use gradient colors:

Defina a cor primária do plano de fundo da legenda com a BackColor propriedade.Set the primary color of the legend background with the BackColor property.

Defina a cor secundária do plano de fundo da legenda com a BackSecondaryColor propriedade.Set the secondary color of the legend background with the BackSecondaryColor property.

Defina essa BackGradientStyle propriedade como o estilo de gradiente desejado.Set this BackGradientStyle property to the desired gradient style.

Aplica-se a