Spread Windows Forms 12.0 Product Documentation
GetDataRestriction(Worksheet,Expression,DataValidationType) Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > DataValidations Class > GetDataRestriction Method : GetDataRestriction(Worksheet,Expression,DataValidationType) Method
The Worksheet object which contains the data validation.
An GrapeCity.CalcEngine.Expression object indicates the expression to check.
An enum indicates the type of data validation used to validate user input.
Determines whether the specified expression can be used for the data validation.
Syntax
'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.
See Also

Reference

DataValidations Class
DataValidations Members
Overload List