Class DefinedNameBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
DefinedNameBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.Spreadsheet
Assembly: Syncfusion.AspNetMvc.Spreadsheet.dll
Syntax
public class DefinedNameBuilder : ControlBuilder
Constructors
DefinedNameBuilder()
Declaration
public DefinedNameBuilder()
DefinedNameBuilder(List<DefinedName>)
Declaration
public DefinedNameBuilder(List<DefinedName> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<DefinedName> | collection |
Methods
Add()
Declaration
public void Add()
Comment(String)
Provides a comment or description for the defined name.
Declaration
public DefinedNameBuilder Comment(string comment)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | comment |
Returns
| Type |
|---|
| DefinedNameBuilder |
Name(String)
Specifies a unique name for the defined name, which can be used in formulas.
Declaration
public DefinedNameBuilder Name(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Returns
| Type |
|---|
| DefinedNameBuilder |
RefersTo(String)
Specifies the cell or range reference associated with the defined name.
The reference can be provided with or without the = prefix.
Declaration
public DefinedNameBuilder RefersTo(string refersTo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | refersTo |
Returns
| Type |
|---|
| DefinedNameBuilder |
Scope(String)
Defines the scope of the name. If not specified, the name is scoped to the entire workbook. If a sheet name is provided, the name will be available only within that specific sheet.
Declaration
public DefinedNameBuilder Scope(string scope)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | scope |
Returns
| Type |
|---|
| DefinedNameBuilder |