ChartNamedElementCollection<T>::SetItem Method (Int32, T)

.NET Framework (current version)
 

Replaces the chart element at the specified index with a new chart element.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

protected:
virtual void SetItem(
	int index,
	T item
) override

Parameters

index
Type: System::Int32

The zero-based index of the chart element to replace.

item
Type: T

The new chart element to insert at the specified index.

.NET Framework
Available since 4.0
Return to top
Show: