Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / DataValidations Class / GetDataRestriction Method / GetDataRestriction(Worksheet,Expression,DataValidationType) Method
The Worksheet object which contains the data validation.
An GrapeCity.CalcEngine.Expression object indicates the expression to check.
An enum indicates the type of data validation used to validate user input.


In This Topic
    GetDataRestriction(Worksheet,Expression,DataValidationType) Method
    In This Topic
    Determines whether the specified expression can be used for the data validation.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetDataRestriction( _
       ByVal worksheet As Worksheet, _
       ByVal expression As Expression, _
       ByVal type As DataValidationType _
    ) As DataRestrictions
    'Usage
     
    
    Dim worksheet As Worksheet
    Dim expression As Expression
    Dim type As DataValidationType
    Dim value As DataRestrictions
     
    value = DataValidations.GetDataRestriction(worksheet, expression, type)

    Parameters

    worksheet
    The Worksheet object which contains the data validation.
    expression
    An GrapeCity.CalcEngine.Expression object indicates the expression to check.
    type
    An enum indicates the type of data validation used to validate user input.

    Return Value

    A DataRestrictions value represents the restriction reason of the specified expression.
    See Also