編輯

共用方式為


LegendCell.CellType Property

Definition

Gets or sets the legend cell type that is used to define the contents of the legend cell.

public:
 virtual property System::Windows::Forms::DataVisualization::Charting::LegendCellType CellType { System::Windows::Forms::DataVisualization::Charting::LegendCellType get(); void set(System::Windows::Forms::DataVisualization::Charting::LegendCellType value); };
public virtual System.Windows.Forms.DataVisualization.Charting.LegendCellType CellType { get; set; }
member this.CellType : System.Windows.Forms.DataVisualization.Charting.LegendCellType with get, set
Public Overridable Property CellType As LegendCellType

Property Value

A LegendCellType enumeration value that represents the type that is used to define the contents of the legend cell. The default value is Text.

Remarks

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: A string is specified using the Text property, and will be displayed in the legend cell.

  • 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. When ImageStyle is set to Marker, all marker attributes of the custom item apply to the cell.

  • Image: An image is defined using the Image property and will be displayed in the legend cell.

Applies to