Export (0) Print
Expand All

LegendCellCollection::Insert Method (Int32, LegendCellType, String, ContentAlignment)

Inserts a legend cell with the specified cell type, text and alignment into the collection at a given location.

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

void Insert(
	int index, 
	LegendCellType cellType, 
	String^ text, 
	ContentAlignment alignment


Type: System::Int32

Index of the location to insert the object.

Type: System.Web.UI.DataVisualization.Charting::LegendCellType

A LegendCellType value that represents the cell type.

Type: System::String

A string value that represents either the cell text or its image name, depending on the value of the cellType parameter.

Type: System.Drawing::ContentAlignment

A ContentAlignment enumeration value that represents the alignment of the legend cell content.

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

© 2014 Microsoft