This documentation is archived and is not being maintained.

LegendCell Constructor (LegendCellType, String, ContentAlignment)

Initializes a new instance of the LegendCell class with the specified cell type, content alignment, and a text parameter that specifies the cell text or image name.

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

public:
LegendCell(
	LegendCellType cellType, 
	String^ text, 
	ContentAlignment alignment
)

Parameters

cellType
Type: System.Web.UI.DataVisualization.Charting::LegendCellType
A LegendCellType value that represents the legend cell type to be used.
text
Type: System::String
A string value representing the cell text or image name, depending on the type of cell.
alignment
Type: System.Drawing::ContentAlignment
A ContentAlignment value that represents the alignment of the legend cell contents.

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