Export (0) Print
Expand All

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 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

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft