[]
        
(Showing Draft Content)

FarPoint.Win.Spread.Model.BaseSheetSelectionModel

BaseSheetSelectionModel Class

Represents the partial (abstract) implementation of the ISheetSelectionModel interface for a selection model for a sheet.

Inheritance
BaseSheetSelectionModel
Namespace: FarPoint.Win.Spread.Model
Assembly: FarPoint.Win.Spread.dll
Syntax
public abstract class BaseSheetSelectionModel : ISheetSelectionModel
Public MustInherit Class BaseSheetSelectionModel
    Implements ISheetSelectionModel

Constructors

Name Description
BaseSheetSelectionModel()

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 selected in the range.

Count

Gets the number selections.

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 all of the selections from the sheet so that cells are no longer selected.

ExtendSelection(int, int)

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

FireChanged(int, int, int, int)

Raises the selection changed event.

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.

OnChanged(SheetSelectionModelEventArgs)

Handles the Changed event in subclasses.

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 user makes a change to the model that affects the selection of cells of the sheet.