Click or drag to resize
DefinedNameCollectionAddDefinedName Method
Adds defined name to collection and returns index of that defined name.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1033
Syntax
public int AddDefinedName(
	string name,
	string value,
	int localSheetIndex
)

Parameters

name
Type: SystemString
Name of the defined name.
value
Type: SystemString
Range string.
localSheetIndex
Type: SystemInt32
Local sheet index. If the value is -1, defined name is global.

Return Value

Type: Int32
Index of the defined name.
See Also