System.Windows.Forms.GridColumnStylesCollection.RemoveAt Method

Removes the System.Windows.Forms.DataGridColumnStyle with the specified index from the System.Windows.Forms.GridColumnStylesCollection.

Syntax

public void RemoveAt (int index)

Parameters

index
The zero-based index of the System.Windows.Forms.DataGridColumnStyle to remove.

Remarks

Use the GridColumnStylesCollection.Contains(System.ComponentModel.PropertyDescriptor) method to determine whether the System.Windows.Forms.DataGridColumnStyle exists in the collection.

Use the GridColumnStylesCollection.IndexOf(DataGridColumnStyle) method to determine the index of any element in the collection.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0