LegendItem.BackGradientStyle 属性
定义
获取或设置图例项的背景渐变的方向。Gets or sets the orientation for the background gradient of a legend item. 还确定是否使用渐变。Also determines whether a gradient is used.
public:
property System::Windows::Forms::DataVisualization::Charting::GradientStyle BackGradientStyle { System::Windows::Forms::DataVisualization::Charting::GradientStyle get(); void set(System::Windows::Forms::DataVisualization::Charting::GradientStyle value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.GradientStyle BackGradientStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
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 legend item. 默认值是 None。The default value is None.
- 属性
注解
使用 BackGradientStyle 属性可确定标题是否将显示渐变,并确定渐变的方向(如果使用)。Use the BackGradientStyle property to determine whether a title will display a gradient, and to determine the orientation of the gradient if one is used.
仅当属性设置为时,才实现此属性 ImageStyle Rectangle 。This property is only implemented if the ImageStyle property is set to Rectangle.
有关可用模式的列表,请参阅 GradientStyle 枚举。For a listing of available patterns, refer to the GradientStyle enumeration.
使用渐变颜色:To use gradient colors:
使用 Color 属性设置主色。Use the Color property to set the primary color.
使用 BackGradientStyle 属性设置辅助颜色。Use the BackGradientStyle property to set the secondary color.
使用此 BackGradientStyle 属性可设置所需的渐变样式。Use this BackGradientStyle property to set the desired gradient style.
备注
此属性仅适用于 LegendCell 具有 LegendCellType 或的对象 SeriesSymbol Image 。This property is applicable only to LegendCell objects with a LegendCellType of either SeriesSymbol or Image.