Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / DefinedName Class / SetRefersTo Method
An integer value indicates the context row index.
An integer value indicates the context column index.
The formula in A1 format which the defined name refers to.


In This Topic
    SetRefersTo Method (DefinedName)
    In This Topic
    Sets the formula in A1 format which the defined name refers to.
    Syntax
    'Declaration
     
    
    Public Overridable Function SetRefersTo( _
       ByVal contextRow As Integer, _
       ByVal contextColumn As Integer, _
       ByVal refersTo As String _
    ) As Boolean
    'Usage
     
    
    Dim instance As DefinedName
    Dim contextRow As Integer
    Dim contextColumn As Integer
    Dim refersTo As String
    Dim value As Boolean
     
    value = instance.SetRefersTo(contextRow, contextColumn, refersTo)
    public virtual bool SetRefersTo( 
       int contextRow,
       int contextColumn,
       string refersTo
    )

    Parameters

    contextRow
    An integer value indicates the context row index.
    contextColumn
    An integer value indicates the context column index.
    refersTo
    The formula in A1 format which the defined name refers to.

    Return Value

    A System.Boolean value represents whether the formula is changed successfully.
    See Also