Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / DataValidationManager Class / Add Method / Add(Reference,DataValidator,Boolean) Method
A GrapeCity.Spreadsheet.Reference indicates the cell range to apply new GrapeCity.Spreadsheet.DataValidator item.
The GrapeCity.Spreadsheet.DataValidator object to apply for the specified range.
if set to true, all items, which belong to the specified range, will be clear.


In This Topic
    Add(Reference,DataValidator,Boolean) Method
    In This Topic
    Applies new TItem item for the specified cell range.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal rangeRef As Reference, _
       ByVal item As DataValidator, _
       Optional ByVal replacing As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim instance As DataValidationManager
    Dim rangeRef As Reference
    Dim item As DataValidator
    Dim replacing As Boolean
    Dim value As Boolean
     
    value = instance.Add(rangeRef, item, replacing)

    Parameters

    rangeRef
    A GrapeCity.Spreadsheet.Reference indicates the cell range to apply new GrapeCity.Spreadsheet.DataValidator item.
    item
    The GrapeCity.Spreadsheet.DataValidator object to apply for the specified range.
    replacing
    if set to true, all items, which belong to the specified range, will be clear.

    Return Value

    true if the GrapeCity.Spreadsheet.DataValidator object is applied successful, false otherwise.
    Remarks
    All existed data validations in the specified range will be removed.
    See Also