Class Worksheet
Represents the core properties and selection state of a worksheet, including its name, dimensions, position, and current selection.
Inherited Members
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public class Worksheet
Remarks
This class provides essential data about a worksheet. It is used to communicate the state of a worksheet to and from the user interface in a serializable format.
Constructors
Worksheet()
Declaration
public Worksheet()
Properties
ActiveCell
Gets the address of the single cell that currently has focus.
Declaration
[JsonPropertyName("activeCell")]
public string ActiveCell { get; init; }
Property Value
| Type | Description |
|---|---|
| string | A string (e.g., "A1", "B12") representing the active cell. |
ColumnCount
Gets the total number of columns in the worksheet.
Declaration
[JsonPropertyName("columnCount")]
public int ColumnCount { get; init; }
Property Value
| Type | Description |
|---|---|
| int | An int that specifies the worksheet's column capacity. |
Index
Gets the worksheet’s position in the workbook as a zero-based index.
Declaration
[JsonPropertyName("index")]
public int Index { get; init; }
Property Value
| Type | Description |
|---|---|
| int | An int that indicates the worksheet's position, starting from 0. |
Name
Gets the display name of the worksheet.
Declaration
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the name you see in the worksheet's tab. This value is not null. |
RowCount
Gets the total number of rows in the worksheet.
Declaration
[JsonPropertyName("rowCount")]
public int RowCount { get; init; }
Property Value
| Type | Description |
|---|---|
| int | An int that specifies the worksheet's row capacity. |
SelectedRange
Gets the address of the currently selected cell or range of cells.
Declaration
[JsonPropertyName("selectedRange")]
public string SelectedRange { get; init; }
Property Value
| Type | Description |
|---|---|
| string | A string in A1-style notation representing the selected range (e.g., "A1" or "A1:B5"). This value is not null. |