Legend.BackGradientStyle 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定圖例背景梯度的方向。 同時也決定是否使用梯度。
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
屬性值
一個 GradientStyle 代表圖例背景梯度方向的枚舉。 預設值為 None。
- 屬性
備註
利用該 BackGradientStyle 屬性判斷圖例是否會顯示漸變,以及如果使用該圖例,則判斷梯度的方向。
有關可用模式的清單,請參閱列舉。GradientStyle
使用漸層色:
用屬性 BackColor 設定圖例背景的主色。
將圖例背景的次要顏色設定為屬性 BackSecondaryColor 。
將此 BackGradientStyle 屬性設定為所需的漸層風格。