Skip to content

965432: Need to add section in Defined name section with public method details and their scope #4352

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: hotfix/hotfix-v30.1.37
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ej2-asp-core-mvc/spreadsheet/formulas.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,28 @@ You can define a meaningful name for a cell range and use it in the formula for
* You can remove an added named range dynamically using the `removeDefinedName` method.
* Select the range of cells, and then enter the name for the selected range in the name box.

### Properties of DefinedName

A defined name in the Spreadsheet supports the following key properties:

- **[`name`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.DefinedName.html#Syncfusion_EJ2_Spreadsheet_DefinedName_Name)**: A unique identifier to represent a specific range or formula.

- **[`refersTo`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.DefinedName.html#Syncfusion_EJ2_Spreadsheet_DefinedName_RefersTo)**: The cell reference or formula that the name refers to.
- You can specify it **with or without** the `=` prefix.
- **Example**: `'A1:B5'` or `'=A1:B5'` are both valid.

- **[`scope`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.DefinedName.html#Syncfusion_EJ2_Spreadsheet_DefinedName_Scope)** (optional): Indicates whether the name is accessible across the **workbook** or only within a **specific sheet**.
- If `scope` is not specified, it defaults to `"Workbook"`.
- If a sheet name is provided as `scope`, the name will be available only within that sheet.

```csharp
spreadsheet.addDefinedName({
name: 'rangeName',
refersTo: '=C2:C10',
scope: 'Sheet1' // local to Sheet1
});
```

The following code example shows the usage of named ranges support.

{% if page.publishingplatform == "aspnet-core" %}
Expand Down