SelectionState
Captures the current selection state in a worksheet, including selected cell ranges, active cell, viewport pane, and selected shapes.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class SelectionState
Inheritance: objectSelectionState
Constructors
Initializes a new SelectionState with the specified selected ranges, active cell, and viewport pane.
public SelectionState(IEnumerable<CellRange> selectedRanges, CellIndex activeCellIndex, ViewportPaneType pane)
The selected ranges.
activeCellIndexCellIndexIndex of the active cell.
paneViewportPaneTypeThe pane.
Properties
Gets the index of the active cell, which receives keyboard input and is the focus point for selection operations.
public CellIndex ActiveCellIndex { get; }
The index of the active cell.
Gets the viewport pane where the selection is located, relevant when the worksheet has frozen panes.
public ViewportPaneType Pane { get; }
The pane.
SelectedRanges
IEnumerable<CellRange>
Gets the collection of cell ranges currently selected in the worksheet.
public IEnumerable<CellRange> SelectedRanges { get; }
The selected ranges.
Methods
Creates a deep copy of this selection state.