Spread Windows Forms 17
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.


In This Topic
    GetDataRestriction(IPrimitiveValue,DataValidationType) Method
    In This Topic
    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)

    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