[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains

Contains Method

Contains(DateTime)

Returns a value that represents whether this collection contains the specified date.

Declaration
public bool Contains(DateTime date)
Public Function Contains([date] As Date) As Boolean
Parameters
Type Name Description
DateTime date

The date to search for.

Returns
Type Description
bool

true if the collection contains the specified date; otherwise, false.

Contains(DateTime, DateTime)

Returns a value that represents whether this collection contains the specified range of dates.

Declaration
public bool Contains(DateTime start, DateTime end)
Public Function Contains(start As Date, [end] As Date) As Boolean
Parameters
Type Name Description
DateTime start

The start of the date range.

DateTime end

The end of the date range.

Returns
Type Description
bool

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

Contains(CalendarDateRange)

Checks if a GrapeCity.Windows.InputMan.CalendarDateRange is in the collection.

Declaration
public bool Contains(CalendarDateRange range)
Public Function Contains(range As CalendarDateRange) As Boolean
Parameters
Type Name Description
CalendarDateRange range

The GrapeCity.Windows.InputMan.CalendarDateRange.

Returns
Type Description
bool

true if all dates in the GrapeCity.Windows.InputMan.CalendarDateRange are contained in the collection; otherwise, false.