'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.