Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / DataValidations Class / Add Method / Add(RangeReference,DataValidator,Boolean) Method
A GrapeCity.CalcEngine.RangeReference indicates the cell range to apply new DataValidator item.
The 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(RangeReference,DataValidator,Boolean) Method
    In This Topic
    Applies new TItem item for the specified cell range.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides NotOverridable Function Add( _
       ByVal rangeRef As RangeReference, _
       ByVal item As DataValidator, _
       Optional ByVal replacing As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim instance As DataValidations
    Dim rangeRef As RangeReference
    Dim item As DataValidator
    Dim replacing As Boolean
    Dim value As Boolean
     
    value = instance.Add(rangeRef, item, replacing)

    Parameters

    rangeRef
    A GrapeCity.CalcEngine.RangeReference indicates the cell range to apply new DataValidator item.
    item
    The 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 DataValidator object is applied successful, false otherwise.
    Remarks
    All existed data validations in the specified range will be removed.
    See Also