Spread WPF 18
GrapeCity.Spreadsheet Namespace / INames Interface / Add Method
A string value indicates the name of new defined name.
A string value indicates the formula which new defined name refers to.
A string value indicates the comment of new defined name.
An integer value indicates the context row related to refersTo formula.
An integer value indicates the context column related to refersTo formula.
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.


In This Topic
    Add Method (INames)
    In This Topic
    Creates a new defined name.
    Syntax
    'Declaration
     
    Function Add( _
       ByVal name As String, _
       ByVal refersTo As String, _
       Optional ByVal comment As String, _
       Optional ByVal contextRow As Integer, _
       Optional ByVal contextColumn As Integer, _
       Optional ByVal isA1StyleNotation As Nullable(Of Boolean) _
    ) As IName
    'Usage
     
    Dim instance As INames
    Dim name As String
    Dim refersTo As String
    Dim comment As String
    Dim contextRow As Integer
    Dim contextColumn As Integer
    Dim isA1StyleNotation As Nullable(Of Boolean)
    Dim value As IName
     
    value = instance.Add(name, refersTo, comment, contextRow, contextColumn, isA1StyleNotation)

    Parameters

    name
    A string value indicates the name of new defined name.
    refersTo
    A string value indicates the formula which new defined name refers to.
    comment
    A string value indicates the comment of new defined name.
    contextRow
    An integer value indicates the context row related to refersTo formula.
    contextColumn
    An integer value indicates the context column related to refersTo formula.
    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.

    Return Value

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