Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / FormatConditions Class / GetDataRestriction Method / GetDataRestriction(Worksheet,Expression,FormatConditionType) Method
The Worksheet object which contains the data validation.
An GrapeCity.CalcEngine.Expression object indicates the expression to check.
A FormatConditionType ruleType which type of the rule use the specified expression.


In This Topic
    GetDataRestriction(Worksheet,Expression,FormatConditionType) Method
    In This Topic
    Determines whether the specified expression can be used for this CfValue.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetDataRestriction( _
       ByVal worksheet As Worksheet, _
       ByVal expression As Expression, _
       ByVal ruleType As FormatConditionType _
    ) As DataRestrictions
    'Usage
     
    
    Dim worksheet As Worksheet
    Dim expression As Expression
    Dim ruleType As FormatConditionType
    Dim value As DataRestrictions
     
    value = FormatConditions.GetDataRestriction(worksheet, expression, ruleType)

    Parameters

    worksheet
    The Worksheet object which contains the data validation.
    expression
    An GrapeCity.CalcEngine.Expression object indicates the expression to check.
    ruleType
    A FormatConditionType ruleType which type of the rule use the specified expression.

    Return Value

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