LegendCell.CellType 属性
定义
获取或设置图例单元的类型。Gets or sets the legend cell type.
public:
virtual property System::Web::UI::DataVisualization::Charting::LegendCellType CellType { System::Web::UI::DataVisualization::Charting::LegendCellType get(); void set(System::Web::UI::DataVisualization::Charting::LegendCellType value); };
public virtual System.Web.UI.DataVisualization.Charting.LegendCellType CellType { get; set; }
member this.CellType : System.Web.UI.DataVisualization.Charting.LegendCellType with get, set
Public Overridable Property CellType As LegendCellType
属性值
LegendCellType 枚举值,表示用于定义图例单元格内容的类型。A LegendCellType enumeration value that represents the type that will be used to define the contents of the legend cell. 默认值是 Text。The default value is Text.
注解
CellType属性确定每个图例单元格中将显示的内容的类型。The CellType property determines the type of content that will be displayed in each individual legend cell. 必须指定下列单元类型之一:One of the following cell types must be specified:
Text:使用属性指定一个字符串 Text ,该字符串将显示在图例单元中。Text: A string is specified using the Text property, and will be displayed in the legend cell.
SeriesSymbol:系列符号由 ImageStyle 类中的属性定义 LegendItem 。SeriesSymbol: A series symbol is defined by the ImageStyle property in the LegendItem class. 它将为图例单元显示。It will be displayed for the legend cell. 请记住,序列符号是一个可视指示器,即线条、矩形或标记。Recall that a series symbol is a visual indicator - a line, rectangle or marker. 如果 ImageStyle 将设置为 Marker ,则自定义项的所有标记特性都将应用于该单元格。When ImageStyle is set to Marker, all marker attributes of the custom item apply to the cell.
图像:使用属性定义图像 Image ,并将其显示在图例单元中。Image: An image is defined using the Image property and will be displayed in the legend cell.