Spread Windows Forms 12.0 Product Documentation
ToRelative Method (CellReference)


GrapeCity.CalcEngine Assembly > GrapeCity.CalcEngine Namespace > CellReference Structure : ToRelative Method
An integer value indicates the context row index.
An integer value indicates the context column index.
Returns the target reference of the CellReference object which relates with the context cell (specified by contextRow and contextColumn. Position state of the CellReference is unchanged.
Syntax
'Declaration
 
Public Function ToRelative( _
   ByVal contextRow As Integer, _
   ByVal contextColumn As Integer _
) As CellReference
'Usage
 
Dim instance As CellReference
Dim contextRow As Integer
Dim contextColumn As Integer
Dim value As CellReference
 
value = instance.ToRelative(contextRow, contextColumn)
public CellReference ToRelative( 
   int contextRow,
   int contextColumn
)

Parameters

contextRow
An integer value indicates the context row index.
contextColumn
An integer value indicates the context column index.

Return Value

A CellReference indicates the target location.
See Also

Reference

CellReference Structure
CellReference Members