Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / SelectedDatesCollection Class / AddRange Method
The first date to add to the collection.
The last date to add to the collection.


In This Topic
    AddRange Method (SelectedDatesCollection)
    In This Topic
    Adds all the dates in the specified range, which includes the first and last dates, to the collection.
    Syntax
    'Declaration
     
    Public Sub AddRange( _
       ByVal start As Date, _
       ByVal end As Date _
    ) 
    'Usage
     
    Dim instance As SelectedDatesCollection
    Dim start As Date
    Dim end As Date
     
    instance.AddRange(start, end)
    public void AddRange( 
       DateTime start,
       DateTime end
    )

    Parameters

    start
    The first date to add to the collection.
    end
    The last date to add to the collection.
    Remarks
    This implementation raises the CollectionChanged event. If the end is earlier than start, this method use the earlier as the first date and use the later one as the last date of the collection.
    See Also