[]
        
(Showing Draft Content)

FarPoint.Win.Spread.Model.ISheetSelectionModel

ISheetSelectionModel Interface

Interface that supports creating a model that represents cell selection.

Namespace: FarPoint.Win.Spread.Model
Assembly: FarPoint.Win.Spread.dll
Syntax
public interface ISheetSelectionModel
Public Interface ISheetSelectionModel

Properties

Name Description
AnchorColumn

Gets the column index of the first cell in the selection of cells.

AnchorRow

Gets the row index of the first cell in the selection of cells.

Count

Gets the number of selection of cells.

this[int]

Gets an item in the model.

LeadColumn

Gets the column index of the farthest cell in the selection of cells.

LeadRow

Gets the row index of the farthest cell in the selection of cells.

SelectionPolicy

Gets or sets whether users can select ranges of items.

SelectionUnit

Gets or sets whether users can select cells, rows, or columns.

Methods

Name Description
AddSelection(int, int, int, int)

Adds a cell or cells to the selection.

ClearSelection()

Removes the selection.

ExtendSelection(int, int)

Specifies the extent (or farthest cell) in the selection of cells.

GetEnumerator()

Gets an enumerator that can iterate through the selections.

IsAnyCellInColumnSelected(int)

Determines whether any cell in a specified column is in the selection.

IsAnyCellInRowSelected(int)

Determines whether any cell in a specified row is in the selection.

IsEmpty()

Determines whether the model has no selections.

IsSelected(int, int)

Determines whether the specified cell is in the selection.

RemoveSelection(int, int, int, int)

Removes the specified selection range from the selection list, if one exists.

SetAnchor(int, int)

Specifies the anchor (or first cell) in the selection of cells.

SetSelection(int, int, int, int)

Selects the specified cells.

Events

Name Description
Changed

Occurs when the selection model has changed.