Class SelectedEventArgs
Provides information about the Selected event.
Inheritance
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public class SelectedEventArgs : Object
Constructors
SelectedEventArgs()
Declaration
public SelectedEventArgs()
Properties
Range
Gets the range of cells that have been selected.
Declaration
public string Range { get; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the address of the selected cells. The format can be:
null .
|
Remarks
This property provides the address of the selected cell range in A1 notation format.
The range representation depends on the current RowCount
set to 2000 but sheet has 5000 rows of data), the range will represent the larger of these values (5000 in this example).
- For single cell selection: The address will be in the format "SheetName!CellReference" (e.g., "Cart!B5:B5")
- For column selection: The address will include row numbers from 1 to the current
value (e.g., "Cart!A1:A1000" for default 1000 rows, "Cart!A1:A2000" if RowCount
is set to 2000, or "Cart!A1:A5000" if actual data extends to 5000 rows) - For row selection: The address will span from column A to the last column determined by
(e.g., "SheetName!A1:GR1" for default 200 columns (column GR), or "SheetName!A1:CV1" if ColumnCount
is set to 100 (column CV)) - For entire sheet selection: The address will span all rows and columns based on current RowCount and ColumnCount values (e.g., "SheetName!A1:GR1000" for default settings)
Multiple non-contiguous selections are represented by space-separated range addresses.
This information can be used to perform operations on the selected cells or to track user selection behavior.