Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IName Interface / RefersToRange Method
An integer value indicates the context row. -1 means the row of the active cell.
An integer value indicates the context column. -1 means the column of the active cell.


In This Topic
    RefersToRange Method
    In This Topic
    Gets the IRange object referred to by an IName object.
    Syntax
    'Declaration
     
    
    Function RefersToRange( _
       Optional ByVal contextRow As Integer, _
       Optional ByVal contextColumn As Integer _
    ) As IRange
    'Usage
     
    
    Dim instance As IName
    Dim contextRow As Integer
    Dim contextColumn As Integer
    Dim value As IRange
     
    value = instance.RefersToRange(contextRow, contextColumn)
    IRange RefersToRange( 
       int contextRow,
       int contextColumn
    )

    Parameters

    contextRow
    An integer value indicates the context row. -1 means the row of the active cell.
    contextColumn
    An integer value indicates the context column. -1 means the column of the active cell.

    Return Value

    IRange.
    Remarks
    If the IName object doesn't refer to a range (for example, if it refers to a constant or a formula), this property returns null.
    See Also