LegendCell Constructor (LegendCellType, String, ContentAlignment)

.NET Framework (current version)
 

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
Available since 4.0
Return to top
Show: