System.Windows.Forms.GridColumnStylesCollection: Method Members

The methods of System.Windows.Forms.GridColumnStylesCollection are listed below. For a list of all members, see the GridColumnStylesCollection Members list.

See Also: Inherited members from System.Windows.Forms.BaseCollection

Public Methods

Add(DataGridColumnStyle) : int

Adds a column style to the collection.

AddRange(DataGridColumnStyle[])

Adds an array of column style objects to the collection.

Clear()

Clears the collection of System.Windows.Forms.DataGridColumnStyle objects.

Contains(System.ComponentModel.PropertyDescriptor) : bool

Gets a value indicating whether the System.Windows.Forms.GridColumnStylesCollection contains a System.Windows.Forms.DataGridColumnStyle associated with the specified System.ComponentModel.PropertyDescriptor.

Contains(string) : bool

Gets a value indicating whether the System.Windows.Forms.GridColumnStylesCollection contains the System.Windows.Forms.DataGridColumnStyle with the specified name.

Contains(DataGridColumnStyle) : bool

Gets a value indicating whether the System.Windows.Forms.GridColumnStylesCollection contains the specified System.Windows.Forms.DataGridColumnStyle.

IndexOf(DataGridColumnStyle) : int

Gets the index of a specified System.Windows.Forms.DataGridColumnStyle.

Remove(DataGridColumnStyle)

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

RemoveAt(int)

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

ResetPropertyDescriptors()

Sets the System.ComponentModel.PropertyDescriptor for each column style in the collection to null.

Protected Methods