Spread Windows Forms 12.0 Product Documentation
SetRefersTo Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > IName Interface : 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.
Sets the formula in A1 format which the defined name refers to.
Syntax
'Declaration
 
Function SetRefersTo( _
   ByVal contextRow As Integer, _
   ByVal contextColumn As Integer, _
   ByVal refersTo As String _
) As Boolean
'Usage
 
Dim instance As IName
Dim contextRow As Integer
Dim contextColumn As Integer
Dim refersTo As String
Dim value As Boolean
 
value = instance.SetRefersTo(contextRow, contextColumn, refersTo)
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

Reference

IName Interface
IName Members