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


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > DataValidations Class > GetDataRestriction Method : GetDataRestriction(IPrimitiveValue,DataValidationType) Method
An GrapeCity.CalcEngine.IPrimitiveValue object indicates the primitive value.
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 primitiveValue As IPrimitiveValue, _
   ByVal type As DataValidationType _
) As DataRestrictions
'Usage
 
Dim primitiveValue As IPrimitiveValue
Dim type As DataValidationType
Dim value As DataRestrictions
 
value = DataValidations.GetDataRestriction(primitiveValue, type)
public static DataRestrictions GetDataRestriction( 
   IPrimitiveValue primitiveValue,
   DataValidationType type
)

Parameters

primitiveValue
An GrapeCity.CalcEngine.IPrimitiveValue object indicates the primitive value.
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 value.
See Also

Reference

DataValidations Class
DataValidations Members
Overload List