MindFusion.Wpf Pack Programmer's Guide
Selection Members
Properties Methods
 


Represents a set of selected cells and objects within a grid view.

The following tables list the members exposed by the Selection type.

 Public Properties

  Name Description

Bottom

Gets the index of the bottommost column of the selected cell range.

IsEmpty

Gets a value indicating whether the selection contains any cells.

Left

Gets the index of the leftmost column of the selected cell range.

Objects

Gets a list with the selected objects.

Range

Gets a CellRange object representing the selected range of cells, or null (Nothing in Visual Basic), if the selection is empty.

Right

Gets the index of the rightmost column of the selected cell range.

Top

Gets the index of the topmost column of the selected cell range.

 Public Methods

  Name Description

AddObject

Selects the specified object.

Change

Selects the specified object, deselects all other currently selected objects.

Clear

Clears the selection.

ClearObjects

Removes all interactive objects from the selection.

Contains

Checks whether the selection contains the cell at the specified coordinates.

ContainsObject

Checks whether the specified object is contained in the selection.

InColumn

Checks whether the specified column is part of the selection.

InRow

Indicates whether the specified row is part of the selection.

RemoveObject

Removes the specified object from the selection.

SelectAll

Overloaded. Selects all cells or a range of cells in the worksheet.

SelectColumns

Overloaded. Selects a column or a range of columns.

SelectRows

Overloaded. Selects a row or a range of rows.

Set

Overloaded. Sets the selection over a cell or a range of cells.

Toggle

Toggles the selection state of the specified object.

 See Also

Selection Class
MindFusion.Spreadsheet.Wpf Namespace