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::Windows::Forms::DataVisualization::Charting::GradientStyle BackGradientStyle { System::Windows::Forms::DataVisualization::Charting::GradientStyle get(); void set(System::Windows::Forms::DataVisualization::Charting::GradientStyle value); };
public System.Windows.Forms.DataVisualization.Charting.GradientStyle BackGradientStyle { get; set; }
member this.BackGradientStyle : System.Windows.Forms.DataVisualization.Charting.GradientStyle with get, set
Public Property BackGradientStyle As GradientStyle


一个 GradientStyle 枚举,指定图表的背景渐变的方向和是否使用渐变。A GradientStyle enumeration that specifies the orientation for the background gradient of a chart and whether a gradient is used. 默认值为 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.