Class GridBaseStyleCollection
Implements a collection that stores GridBaseStyle objects.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridBaseStyleCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
GridBaseStyleCollection()
Initializes a new instance of GridBaseStyleCollection class.
Declaration
public GridBaseStyleCollection()
GridBaseStyleCollection(GridBaseStyle[])
Initializes a new instance of GridBaseStyleCollection with an array of 'GridBaseStyle' objects.
Declaration
public GridBaseStyleCollection(GridBaseStyle[] griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyle[] | griValue | An array of GridBaseStyle objects with which to initialize the collection |
GridBaseStyleCollection(GridBaseStyleCollection)
Initializes a new instance of GridBaseStyleCollection class based on an already existing instance.
Declaration
public GridBaseStyleCollection(GridBaseStyleCollection griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyleCollection | griValue | A GridBaseStyleCollection from which the contents is copied |
Properties
Item[Int32]
Gets or sets the GridBaseStyle item at the specified index position.
Declaration
public GridBaseStyle this[int intIndex] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intIndex | The zero-based index of the entry to locate in the collection. |
Property Value
Type | Description |
---|---|
GridBaseStyle | The entry at the specified index of the collection. |
Methods
Add(GridBaseStyle)
Adds a GridBaseStyle item with the specified value to the 'GridBaseStyleCollection'
Declaration
public int Add(GridBaseStyle griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyle | griValue | The GridBaseStyle to add. |
Returns
Type | Description |
---|---|
System.Int32 | The index at which the new element was inserted. |
AddRange(GridBaseStyle[])
Copies the elements of an array at the end of this instance of GridBaseStyleCollection.
Declaration
public void AddRange(GridBaseStyle[] griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyle[] | griValue | An array of GridBaseStyleobjects to add to the collection. |
AddRange(GridBaseStyleCollection)
Adds the contents of another GridBaseStyleCollection at the end of this instance.
Declaration
public void AddRange(GridBaseStyleCollection griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyleCollection | griValue | A GridBaseStyleCollection containing the objects to add to the collection. |
Contains(GridBaseStyle)
Gets a value indicating whether the GridBaseStyleCollection contains the specified value.
Declaration
public bool Contains(GridBaseStyle griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyle | griValue | The item to locate. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item exists in the collection; false otherwise. |
CopyTo(GridBaseStyle[], Int32)
Copies the GridBaseStyleCollection values to a one-dimensional System.Array instance starting at the specified array index.
Declaration
public void CopyTo(GridBaseStyle[] griArray, int intIndex)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyle[] | griArray | The one-dimensional System.Array that represents the copy destination. |
System.Int32 | intIndex | The index in the array where copying begins. |
GetEnumerator()
Returns an enumerator that can be used to iterate through the GridBaseStyleCollection.
Declaration
public GridBaseStyleCollection.GridBaseStyleEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
GridBaseStyleCollection.GridBaseStyleEnumerator | Enumerator for GridBaseStyle. |
IndexOf(GridBaseStyle)
Returns the index of a GridBaseStyle object in the collection.
Declaration
public int IndexOf(GridBaseStyle griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyle | griValue | The GridBaseStyle object whose index will be retrieved. |
Returns
Type | Description |
---|---|
System.Int32 | If found, the index of the value; otherwise, -1. |
Insert(Int32, GridBaseStyle)
Inserts an existing GridBaseStyle into the collection at the specified index.
Declaration
public void Insert(int intIndex, GridBaseStyle griValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intIndex | The zero-based index where the new item should be inserted. |
GridBaseStyle | griValue | The item to insert. |
Remove(GridBaseStyle)
Removes a specific item from the GridBaseStyleCollection.
Declaration
public void Remove(GridBaseStyle griValue)
Parameters
Type | Name | Description |
---|---|---|
GridBaseStyle | griValue | The item to remove from the GridBaseStyleCollection. |