GemBox.Spreadsheet

DefinedNameCollection.AddDefinedName Method 

Adds defined name to collection and returns index of that defined name.

public int AddDefinedName(
   string name,
   string value,
   int localSheetIndex
);

Parameters

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

See Also

DefinedNameCollection Class | GemBox.Spreadsheet Namespace