menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectedEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectedEventArgs

    Provides information about the Selected event.

    Inheritance
    System.Object
    SelectedEventArgs
    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:

    • Single cell (e.g., "SheetName!A1")
    • Cell range (e.g., "SheetName!A1:B10")
    • Column selection (e.g., "SheetName!A1:A1000")
    • Multiple column selection (e.g., "SheetName!A1:A1000 B1:B1000")
    • Row selection (e.g., "SheetName!A1:GR1")
    • Multiple row selection (e.g., "SheetName!A1:GR1 A2:GR2")
    • Entire sheet selection (e.g., "SheetName!A1:GR1000")
    • Mixed selection of columns, rows, and cells (e.g., "SheetName!A1:GP1 D1:D1000 A5:G5")
    The default value is null.
    Remarks

    This property provides the address of the selected cell range in A1 notation format.

    The range representation depends on the current and properties, as well as the actual data in the sheet. If the sheet contains more data than the configured row or column count (e.g., 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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved