Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / CellRange Class / IsValidRange Method / IsValidRange(Worksheet,Boolean) Method
The Worksheet object.
Whether to treat the cell range as a span or a selection.


In This Topic
    IsValidRange(Worksheet,Boolean) Method
    In This Topic
    Determines whether this cell range is valid in the specified worksheet and whether to treat it as a span.
    Syntax
    'Declaration
     
    Public Overloads Function IsValidRange( _
       ByVal worksheet As Worksheet, _
       ByVal isSpan As Boolean _
    ) As Boolean
    'Usage
     
    Dim instance As CellRange
    Dim worksheet As Worksheet
    Dim isSpan As Boolean
    Dim value As Boolean
     
    value = instance.IsValidRange(worksheet, isSpan)
    public bool IsValidRange( 
       Worksheet worksheet,
       bool isSpan
    )

    Parameters

    worksheet
    The Worksheet object.
    isSpan
    Whether to treat the cell range as a span or a selection.

    Return Value

    true if the cell range is a valid range in the specified sheet; otherwise, false.
    See Also