Chart.BackGradientStyle 属性


获取或设置 Chart 控件的背景渐变方向。Gets or sets the orientation for the background gradient of a Chart control. 还确定是否使用渐变。Also determines whether a gradient is used.

 property System::Web::UI::DataVisualization::Charting::GradientStyle BackGradientStyle { System::Web::UI::DataVisualization::Charting::GradientStyle get(); void set(System::Web::UI::DataVisualization::Charting::GradientStyle value); };
public System.Web.UI.DataVisualization.Charting.GradientStyle BackGradientStyle { get; set; }
member this.BackGradientStyle : System.Web.UI.DataVisualization.Charting.GradientStyle with get, set
Public Property BackGradientStyle As GradientStyle


GradientStyle 枚举。A GradientStyle enumeration. 默认值为 NoneThe default value is None.



使用属性可确定Chart控件是否将显示渐变,并确定渐变的方向(如果使用)。 BackGradientStyleUse the BackGradientStyle property to determine whether a Chart control will display a gradient, and to determine the orientation of the gradient if one is used.

有关可用模式的列表,请参阅GradientStyle枚举。For a listing of available patterns, refer to the GradientStyle enumeration.

使用渐变颜色:To use gradient colors:

BackColor属性设置图表背景的主要颜色。Set the primary color of the chart background with the BackColor property.

BackSecondaryColor属性设置图表背景的辅助颜色。Set the secondary color of the chart background with the BackSecondaryColor property.

将此BackGradientStyle属性设置为所需的渐变样式。Set this BackGradientStyle property to the desired gradient style.