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

一个 GradientStyle 枚举,指示图例项的背景渐变的方向。A GradientStyle enumeration that specifies the orientation for the background gradient of a legend item. 默认值是 NoneThe 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 RectangleThis 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:

备注

此属性仅适用于 LegendCell 具有 LegendCellType 或的对象 SeriesSymbol ImageThis property is applicable only to LegendCell objects with a LegendCellType of either SeriesSymbol or Image.

适用于