| SpreadsheetGear Namespace > INames Interface > Add Method : Add(String,String,ReferenceStyle) Method | 
Adds a name to the collection using the specified reference style, or modifies the name if it already exists.
[Visual Basic]
Overloads Overridable Function Add( _
   ByVal name As String , _
   ByVal formula As String , _
   ByVal referenceStyle As ReferenceStyle _
) As IName[C#]
virtual IName Add( 
   string  name,
   string  formula,
   ReferenceStyle referenceStyle
);[C++]
virtual IName* Add( 
   string * name,
   string * formula,
   ReferenceStyle referenceStyle
) [C++/CLI]
virtual IName^ Add( 
   String ^ name,
   String ^ formula,
   ReferenceStyle referenceStyle
) The newly created or modified defined name.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
INames Interface | INames Members | Overload List
See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.
Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.
SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.