'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)
public static DataRestrictions GetDataRestriction( Worksheet worksheet, Expression expression, FormatConditionType 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.