CellType Property

LegendCell.CellType Property

.NET Framework 4.6 and 4.5

Gets or sets the legend cell type.

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

public virtual LegendCellType CellType { get; set; }

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
Available since 4.0
Return to top
© 2015 Microsoft