Spread Windows Forms 15.0
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / RangeReference Structure / ToRelative Method
An integer indicates the row index of context cell.
An integer indicates the column index of context cell.


In This Topic
    ToRelative Method (RangeReference)
    In This Topic
    Returns the target reference of the RangeReference object which relates with the context cell (specified by contextRow and contextColumn. Position state of the RangeReference is unchanged.
    Syntax
    'Declaration
     
    
    Public Function ToRelative( _
       ByVal contextRow As Integer, _
       ByVal contextColumn As Integer _
    ) As RangeReference
    'Usage
     
    
    Dim instance As RangeReference
    Dim contextRow As Integer
    Dim contextColumn As Integer
    Dim value As RangeReference
     
    value = instance.ToRelative(contextRow, contextColumn)

    Parameters

    contextRow
    An integer indicates the row index of context cell.
    contextColumn
    An integer indicates the column index of context cell.
    See Also