LegendCell.CellType Property


Gets or sets the legend cell type.

 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

Property Value

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


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