GridColumnStylesCollection Members
.NET Framework 2.0
Represents a collection of DataGridColumnStyle objects in the System.Windows.Forms.DataGrid control.
The following tables list the members exposed by the GridColumnStylesCollection type.
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Count | Gets the total number of elements in the collection.(Inherited from BaseCollection.) |
| IsReadOnly | Gets a value indicating whether the collection is read-only.(Inherited from BaseCollection.) |
| IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized.(Inherited from BaseCollection.) |
| Item | Overloaded. Gets a specified DataGridColumnStyle in the GridColumnStylesCollection. |
| SyncRoot | Gets an object that can be used to synchronize access to the BaseCollection.(Inherited from BaseCollection.) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Add | Adds a column style to the collection. |
| AddRange | Adds an array of column style objects to the collection. |
| Clear | Clears the collection of DataGridColumnStyle objects. |
| Contains | Overloaded. Gets a value indicating whether the GridColumnStylesCollection contains a specific DataGridColumnStyle. |
| CopyTo | Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. (Inherited from BaseCollection.) |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetEnumerator | Gets the object that enables iterating through the members of the collection. (Inherited from BaseCollection.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| IndexOf | Gets the index of a specified DataGridColumnStyle. |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| Remove | Removes the specified DataGridColumnStyle from the GridColumnStylesCollection. |
| RemoveAt | Removes the DataGridColumnStyle with the specified index from the GridColumnStylesCollection. |
| ResetPropertyDescriptors | Sets the PropertyDescriptor for each column style in the collection to a null reference (Nothing in Visual Basic). |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| MemberwiseClone | Overloaded. (Inherited from MarshalByRefObject.) |
| OnCollectionChanged | Raises the CollectionChanged event. |
| Name | Description | |
|---|---|---|
| CollectionChanged | Occurs when a change is made to the GridColumnStylesCollection. |
| Name | Description | |
|---|---|---|
| System.Collections.ICollection.CopyTo | Copies the collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
| System.Collections.IEnumerable.GetEnumerator | Returns an enumerator for the collection. |
| System.Collections.IList.Add | Adds an object to the collection. |
| System.Collections.IList.Clear | Clears the collection of DataGridColumnStyle objects. |
| System.Collections.IList.Contains | Determines whether an element is in the collection. |
| System.Collections.IList.IndexOf | Returns the zero-based index of the first occurrence of the specified object in the collection. |
| System.Collections.IList.Insert | This method is not supported by this control. |
| System.Collections.IList.Remove | Removes the specified DataGridColumnStyle from the GridColumnStylesCollection. |
| System.Collections.IList.RemoveAt | Removes the DataGridColumnStyle at the specified index from the GridColumnStylesCollection. |
| System.Collections.ICollection.Count | Gets the number of elements contained in the collection. |
| System.Collections.ICollection.IsSynchronized | Gets a value indicating whether access to the GridColumnStylesCollection is synchronized (thread safe). |
| System.Collections.ICollection.SyncRoot | Gets an object that can be used to synchronize access to the GridColumnStylesCollection. |
| System.Collections.IList.IsFixedSize | Gets a value indicating whether the collection has a fixed size. |
| System.Collections.IList.IsReadOnly | Gets a value indicating whether the collection is read-only. |
| System.Collections.IList.Item | Gets the element at the specified index. |