This documentation is archived and is not being maintained.

LegendCell::CellType Property

Gets or sets the legend cell type.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public:
virtual property LegendCellType CellType {
	LegendCellType get ();
	void set (LegendCellType value);
}

Property Value

Type: System.Web.UI.DataVisualization.Charting::LegendCellType
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.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: