[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.INames.Add

Add Method

Add(string, string, string, int, int, bool?)

Creates a new defined name.

Declaration
IName Add(string name, string refersTo, string comment = null, int contextRow = 0, int contextColumn = 0, bool? isA1StyleNotation = null)
Function Add(name As String, refersTo As String, Optional comment As String = Nothing, Optional contextRow As Integer = 0, Optional contextColumn As Integer = 0, Optional isA1StyleNotation As Boolean? = Nothing) As IName
Parameters
Type Name Description
string name

A string value indicates the name of new defined name.

string refersTo

A string value indicates the formula which new defined name refers to.

string comment

A string value indicates the comment of new defined name.

int contextRow

An integer value indicates the context row related to refersTo formula.

int contextColumn

An integer value indicates the context column related to refersTo formula.

bool? isA1StyleNotation

A bool? value indicates the notation style of the formula. true means A1-style notation. false means R1C1-style notation. null means current notation style.

Returns
Type Description
IName

An IName object indicates the new created defined name. null if the input is invalid.