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


In This Topic
    GetDataRestriction(Worksheet,Expression,CfRule) 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, _
       Optional ByVal rule As CfRule _
    ) As DataRestrictions
    'Usage
     
    
    Dim worksheet As Worksheet
    Dim expression As Expression
    Dim rule As CfRule
    Dim value As DataRestrictions
     
    value = FormatConditions.GetDataRestriction(worksheet, expression, rule)
    public static DataRestrictions GetDataRestriction( 
       Worksheet worksheet,
       Expression expression,
       CfRule rule
    )

    Parameters

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

    Return Value

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