ChartElementCollection<T>.SetItem Method (Int32, T)

.NET Framework (current version)
 

Replaces the element at the specified index location.

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

protected override void SetItem(
	int index,
	T item
)

Parameters

index
Type: System.Int32

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

item
Type: T

The new value for the element at the specified index location. The value can be null for reference types.

.NET Framework
Available since 4.0
Return to top
Show: