Skip to main content
Version: 4.1

DataGridViewSelectedCellCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a collection of cells that are selected in a DataGridView.

public class DataGridViewSelectedCellCollection : BaseCollection, IList, IList<DataGridViewCell>, ICollection<DataGridViewCell>, IEnumerable<DataGridViewCell>

Properties

Instance member Count

Int32: Returns the number of elements in the collection.

Instance member Item(index)

DataGridViewCell: Returns the cell at the specified index.

Throws:

Instance member List

IList: Returns a list of elements in the collection.

Methods

Instance member Contains(cellAddress)

Determines whether the specified cell is contained in the collection.

ParameterTypeDescription
cellAddressPointThe DataGridViewCell to locate in the DataGridViewSelectedCellCollection.

Returns: Boolean. true if cellAddress is in the DataGridViewSelectedCellCollection; otherwise, false.

Instance member Contains(cell)

Determines whether the specified cell is contained in the collection.

ParameterTypeDescription
cellDataGridViewCellThe DataGridViewCell to locate in the DataGridViewSelectedCellCollection.

Returns: Boolean. true if cell is in the DataGridViewSelectedCellCollection; otherwise, false.

Instance member CopyTo(array, index)

Copies the elements of the collection to the specified DataGridViewCell array, starting at the specified index.

ParameterTypeDescription
arrayDataGridViewCell[]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.
indexInt32The zero-based index in array at which copying begins.

Throws:

Instance member IndexOf(cellAddress)

Returns the index of the specified element.

ParameterTypeDescription
cellAddressPointThe 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.

Instance member IndexOf(cell)

Returns the index of the specified element.

ParameterTypeDescription
cellDataGridViewCellThe 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.