LegendItem.ImageStyle 属性
定义
获取或设置图例项图像的显示样式。Gets or sets the display style of the legend item image.
public:
property System::Windows::Forms::DataVisualization::Charting::LegendImageStyle ImageStyle { System::Windows::Forms::DataVisualization::Charting::LegendImageStyle get(); void set(System::Windows::Forms::DataVisualization::Charting::LegendImageStyle value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.LegendImageStyle ImageStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.ImageStyle : System.Windows.Forms.DataVisualization.Charting.LegendImageStyle with get, set
Public Property ImageStyle As LegendImageStyle
属性值
一个 LegendImageStyle 枚举值,该值指定图例项图片的显示样式。A LegendImageStyle enumeration value that specifies the display style of the legend item image.
- 属性
注解
这些样式确定如何显示项的相应符号。These styles determine how the item's corresponding symbol will be displayed.
Line样式可与 Marker 样式组合。A Line style can be combined with a Marker style. 若要实现此目的,请先将 ImageStyle 属性设置为 Line 。To accomplish this, first set the ImageStyle property to Line. 然后,使用 MarkerImage 属性指定标记图像,或使用属性 MarkerStyle 指定标记样式。Then use the MarkerImage property to specify a marker image, or the MarkerStyle property to specify a marker style. 生成的符号将是线条和图像或标记的组合。The resulting symbol will be a combination of a line and an image or marker.
备注
此属性仅适用于 LegendCell 具有 LegendCellType 或的对象 SeriesSymbol Image 。This property is applicable only to LegendCell objects with a LegendCellType of either SeriesSymbol or Image.