A class for managing the selection of cells or ranges in a spreadsheet.
Object
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public class SelectionA class for managing the selection of cells or ranges in a spreadsheet.
public Selection(Documents.Spreadsheet.Worksheet sheet)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet |
Gets or sets the currently active cell reference.
public Documents.Spreadsheet.CellRef Cell { get; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.CellRef | Gets or sets the currently active cell reference. |
Gets or sets the range of cells that are currently selected.
public Documents.Spreadsheet.RangeRef Range { get; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.RangeRef | Gets or sets the range of cells that are currently selected. |
Clears the current selection, resetting both the active cell and range to invalid states.
public void Clear()Merges the current selection with another cell address, expanding the selection range to include both addresses.
public void Merge(Documents.Spreadsheet.CellRef address)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.CellRef | address |
Selects a column in the spreadsheet, updating the active cell and range to cover the entire column.
public void Select(Documents.Spreadsheet.ColumnRef column)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.ColumnRef | column |
Selects a column in the spreadsheet, updating the active cell and range to cover the entire column.
public void Select(Documents.Spreadsheet.RowRef row)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.RowRef | row |
Selects a column in the spreadsheet, updating the active cell and range to cover the entire column.
public Documents.Spreadsheet.CellRef Select(Documents.Spreadsheet.CellRef address)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.CellRef | address |
| Type | Description |
|---|---|
| Documents.Spreadsheet.CellRef |
Selects a column in the spreadsheet, updating the active cell and range to cover the entire column.
public void Select(Documents.Spreadsheet.CellRef cell, Documents.Spreadsheet.RangeRef range)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.CellRef | cell | |
| Documents.Spreadsheet.RangeRef | range |
Selects a column in the spreadsheet, updating the active cell and range to cover the entire column.
public void Select(Documents.Spreadsheet.RangeRef range)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.RangeRef | range |
Event that is triggered when the selection changes.
public event Action ChangedEvent that is triggered when the user finalizes a selection — i.e. releases the pointer after a click or drag on the sheet. Subscribers (such as the range picker) use this to commit a picked range.
public event Action RangeFinalized