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