DataGridViewSelectedCellCollection
Wisej.Web.DataGridViewSelectedCellCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a collection of cells that are selected in a DataGridView.
Properties
Int32: Returns the number of elements in the collection.
DataGridViewCell: Returns the cell at the specified index.
Throws:
ArgumentOutOfRangeException index is less than 0; or index is equal to or greater than the number of cells in the collection.
Methods
Determines whether the specified cell is contained in the collection.
Parameter | Type | Description |
---|---|---|
cellAddress | The DataGridViewCell to locate in the DataGridViewSelectedCellCollection. |
Returns: Boolean. true if cellAddress is in the DataGridViewSelectedCellCollection; otherwise, false.
Determines whether the specified cell is contained in the collection.
Parameter | Type | Description |
---|---|---|
cell | The DataGridViewCell to locate in the DataGridViewSelectedCellCollection. |
Returns: Boolean. true if cell is in the DataGridViewSelectedCellCollection; otherwise, false.
Copies the elements of the collection to the specified DataGridViewCell array, starting at the specified index.
Parameter | Type | Description |
---|---|---|
array | The one-dimensional array of type DataGridViewCell that is the destination of the elements copied from the collection. The array must have zero-based indexing. | |
index | The zero-based index in array at which copying begins. |
Throws:
ArgumentNullException array is null.
ArgumentOutOfRangeException index is less than zero.
ArgumentException array is multidimensional; or the number of elements in the DataGridViewSelectedCellCollection is greater than the available space from index to the end of array .
InvalidCastException The DataGridViewSelectedCellCollection cannot be cast automatically to the type of array .
Returns the index of the specified element.
Parameter | Type | Description |
---|---|---|
cellAddress | The DataGridViewCell to locate in the collection. |
Returns: Int32. The zero-based index of the cellAddress parameter if it is found in the collection; otherwise, -1.
Returns the index of the specified element.
Parameter | Type | Description |
---|---|---|
cell | The DataGridViewCell to locate in the collection. |
Returns: Int32. The zero-based index of the cell parameter if it is found in the collection; otherwise, -1.
Last updated