Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / SetCustomName Method / SetCustomName(String,Int32,Int32,String) Method
The custom name.
The base row.
The base column.
The formula to set.


In This Topic
    SetCustomName(String,Int32,Int32,String) Method
    In This Topic
    Sets a custom name using the specified formula.
    Syntax
    'Declaration
     
    Public Overloads Sub SetCustomName( _
       ByVal name As String, _
       ByVal baseRow As Integer, _
       ByVal baseColumn As Integer, _
       ByVal formula As String _
    ) 
    'Usage
     
    Dim instance As Worksheet
    Dim name As String
    Dim baseRow As Integer
    Dim baseColumn As Integer
    Dim formula As String
     
    instance.SetCustomName(name, baseRow, baseColumn, formula)
    public void SetCustomName( 
       string name,
       int baseRow,
       int baseColumn,
       string formula
    )

    Parameters

    name
    The custom name.
    baseRow
    The base row.
    baseColumn
    The base column.
    formula
    The formula to set.
    Remarks
    For example, SetCustomName("GAMMA",2,2,"A6*A7") means to use formula "A6*A7" at 2,2 and call it "GAMMA". When using SetFormula(7,7,"GAMMA"), the offset is (7-2),(7-2), move A6,A7 by (5,5) then set value to A11 A12. The result is A11*A12.
    See Also