Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / BlackoutDatesCollection Class / Contains Method / Contains(DateTime,DateTime) Method
The start of the date range.
The end of the date range.


In This Topic
    Contains(DateTime,DateTime) Method
    In This Topic
    Returns a value that represents whether this collection contains the specified range of dates.
    Syntax
    'Declaration
     
    Public Overloads Function Contains( _
       ByVal start As Date, _
       ByVal end As Date _
    ) As Boolean
    'Usage
     
    Dim instance As BlackoutDatesCollection
    Dim start As Date
    Dim end As Date
    Dim value As Boolean
     
    value = instance.Contains(start, end)
    public bool Contains( 
       DateTime start,
       DateTime end
    )

    Parameters

    start
    The start of the date range.
    end
    The end of the date range.

    Return Value

    true if all dates in the range are contained in the collection; otherwise, false.
    See Also