Class DefinedNameCollection
Stores defined names for ranges in a workbook.
Inheritance
System.Object
DefinedNameCollection
Assembly: DRIT.Spreadsheet.dll
Syntax
public class DefinedNameCollection : IEnumerable<DefinedName>
Constructors
DefinedNameCollection(Workbook)
Declaration
public DefinedNameCollection(Workbook workbook)
Parameters
Properties
Item[Int32]
Declaration
public DefinedName this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Workbook
Declaration
public Workbook Workbook { get; }
Property Value
Methods
DefineName(String, Range)
Define a name for a range
Declaration
public DefinedName DefineName(string name, Range range)
Parameters
Type |
Name |
Description |
System.String |
name |
The name of the defined name
|
Range |
range |
The range of the defined name
|
Returns
Type |
Description |
DefinedName |
The newly created defined name
|
DefineName(String, String)
Define a new name for the workbook
Declaration
public DefinedName DefineName(string name, string formula)
Parameters
Type |
Name |
Description |
System.String |
name |
The name of the defined name
|
System.String |
formula |
The formula of the defined name
|
Returns
GetEnumerator()
Declaration
public IEnumerator<DefinedName> GetEnumerator()
Returns
RemoveDefinendName(String)
Declaration
public void RemoveDefinendName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
The name of the defined name to remove
|
TryGetDefinedName(Sheet, String)
Declaration
public DefinedName TryGetDefinedName(Sheet sheet, string name)
Parameters
Type |
Name |
Description |
Sheet |
sheet |
|
System.String |
name |
|
Returns
TryGetWorkbookDefinedName(String)
Declaration
public DefinedName TryGetWorkbookDefinedName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns