[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection

BlackoutDatesCollection Class

Represents a collection of non-selectable dates in a GrapeCity.Windows.InputMan.GcDropDownCalendar.

Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public sealed class BlackoutDatesCollection : ObservableCollection<CalendarDateRange>, IList<CalendarDateRange>, ICollection<CalendarDateRange>, IList, ICollection, IReadOnlyList<CalendarDateRange>, IReadOnlyCollection<CalendarDateRange>, IEnumerable<CalendarDateRange>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Public NotInheritable Class BlackoutDatesCollection
    Inherits ObservableCollection(Of CalendarDateRange)
    Implements IList(Of CalendarDateRange), ICollection(Of CalendarDateRange), IList, ICollection, IReadOnlyList(Of CalendarDateRange), IReadOnlyCollection(Of CalendarDateRange), IEnumerable(Of CalendarDateRange), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Remarks

The BlackoutDatesCollection contains GrapeCity.Windows.InputMan.CalendarDateRange objects, which enables you to specify multiple dates that cannot be selected by a user. To make all past dates not selectable, you can use the AddDatesInPast() method.

Constructors

Name Description
BlackoutDatesCollection(BlackoutDatesCollection)

Initializes a new instance of the BlackoutDatesCollection class based on existed instance.

BlackoutDatesCollection(GcDropDownCalendar)

Initializes a new instance of the BlackoutDatesCollection class.

Methods

Name Description
AddDatesInPast()

Adds all dates before Today to the BlackoutDatesCollection.

ClearItems()

Removes all items from the collection.

Clone()
Contains(CalendarDateRange)

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

Contains(DateTime)

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

Contains(DateTime, DateTime)

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

ContainsAny(CalendarDateRange)

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

InsertItem(int, CalendarDateRange)

Inserts an item into the collection at the specified index.

RemoveItem(int)

Removes the item at the specified index of the collection.

SetItem(int, CalendarDateRange)

Replaces the element at the specified index.