Represents a set of selected cells and objects within a grid view.
The following tables list the members exposed by the Selection type.
Name | Description | |
---|---|---|
![]() |
Gets an enumerable with all selected cell ranges. |
|
![]() |
Gets the index of the bottommost column of the selected cell range. |
|
![]() |
Gets a value indicating whether the selection contains any cells. |
|
![]() |
Gets the index of the leftmost column of the selected cell range. |
|
![]() |
Gets a list with the selected objects. |
|
![]() |
Gets a CellRange object representing the selected range of cells, or null (Nothing in Visual Basic), if the selection is empty. |
|
![]() |
Gets the index of the rightmost column of the selected cell range. |
|
![]() |
Gets the index of the topmost column of the selected cell range. |
Name | Description | |
---|---|---|
![]() |
Overloaded. Adds a cell or a range of cells to the selection. |
|
![]() |
Overloaded. Adds one or more columns to the selection. |
|
![]() |
Selects the specified object. |
|
![]() |
Overloaded. Adds one or more rows to the selection. |
|
![]() |
Selects the specified object, deselects all other currently selected objects. |
|
![]() |
Clears the selection. |
|
![]() |
Removes all interactive objects from the selection. |
|
![]() |
Checks whether the selection contains the cell at the specified coordinates. |
|
![]() |
Checks whether the specified object is contained in the selection. |
|
![]() |
Checks whether the specified column is part of the selection. |
|
![]() |
Indicates whether the specified row is part of the selection. |
|
![]() |
Removes the specified object from the selection. |
|
![]() |
Overloaded. Selects all cells or a range of cells in the worksheet. |
|
![]() |
Overloaded. Selects a column or a range of columns. |
|
![]() |
Overloaded. Selects a row or a range of rows. |
|
![]() |
Overloaded. Sets the selection over a cell or a range of cells. |
|
![]() |
Toggles the selection state of the specified object. |