All pages
Powered by GitBook
1 of 1

Loading...

DataGridViewSelectedCellCollection

Wisej.Web.DataGridViewSelectedCellCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.2.0.0)

  • BaseCollection

    • DataGridViewSelectedCellCollection

Represents a collection of cells that are selected in a .

Properties

Count

: Returns the number of elements in the collection.

Item(index)

: Returns the cell at the specified index.

Throws:

  • index is less than 0; or index is equal to or greater than the number of cells in the collection.

Methods

Contains(cellAddress)

Determines whether the specified cell is contained in the collection.

Parameter
Type
Description

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

Contains(cell)

Determines whether the specified cell is contained in the collection.

Parameter
Type
Description

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

CopyTo(array, index)

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

Parameter
Type
Description

Throws:

  • array is null.

  • index is less than zero.

  • array is multidimensional; or the number of elements in the is greater than the available space from index to the end of array .

IndexOf(cellAddress)

Returns the index of the specified element.

Parameter
Type
Description

Returns: . The zero-based index of the cellAddress parameter if it is found in the collection; otherwise, -1.

IndexOf(cell)

Returns the index of the specified element.

Parameter
Type
Description

Returns: . The zero-based index of the cell parameter if it is found in the collection; otherwise, -1.

InvalidCastException The DataGridViewSelectedCellCollection cannot be cast automatically to the type of array .

cellAddress

Point

The DataGridViewCell to locate in the DataGridViewSelectedCellCollection.

cell

DataGridViewCell

The DataGridViewCell to locate in the DataGridViewSelectedCellCollection.

array

DataGridViewCell[]

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

Int32

The zero-based index in array at which copying begins.

cellAddress

Point

The DataGridViewRowCell to locate in the collection.

cell

DataGridViewCell

The DataGridViewRowCell to locate in the collection.

DataGridView
Public Class DataGridViewSelectedCellCollection
    Inherits BaseCollection
    Implements IList, IList(Of DataGridViewCell), ICollection(Of DataGridViewCell), IEnumerable(Of DataGridViewCell)
Int32
DataGridViewCell
ArgumentOutOfRangeException
Boolean
DataGridViewSelectedCellCollection
Boolean
DataGridViewSelectedCellCollection
DataGridViewCell
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
DataGridViewSelectedCellCollection
Int32
Int32
public class DataGridViewSelectedCellCollection : BaseCollection, IList, IList<DataGridViewCell>, ICollection<DataGridViewCell>, IEnumerable<DataGridViewCell>