menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectedDatesCollection - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectedDatesCollection

    Represents the collection of SelectedDates for the Calendar Control.

    Inheritance
    System.Object
    SelectedDatesCollection
    Namespace: Syncfusion.Windows.Controls
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public sealed class SelectedDatesCollection : ObservableCollection<DateTime>

    Constructors

    SelectedDatesCollection(Calendar)

    Initializes a new instance of the CalendarSelectedDatesCollection class.

    Declaration
    public SelectedDatesCollection(Calendar owner)
    Parameters
    Type Name Description
    Calendar owner

    Methods

    AddRange(DateTime, DateTime)

    Adds a range of dates to the Calendar SelectedDates.

    Declaration
    public void AddRange(DateTime start, DateTime end)
    Parameters
    Type Name Description
    System.DateTime start
    System.DateTime end

    ClearItems()

    Clears all the items of the SelectedDates.

    Declaration
    protected override void ClearItems()

    InsertItem(Int32, DateTime)

    Inserts the item in the specified position of the SelectedDates collection.

    Declaration
    protected override void InsertItem(int index, DateTime item)
    Parameters
    Type Name Description
    System.Int32 index
    System.DateTime item

    RemoveItem(Int32)

    Removes the item at the specified position.

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    System.Int32 index

    SetItem(Int32, DateTime)

    The object in the specified index is replaced with the provided item.

    Declaration
    protected override void SetItem(int index, DateTime item)
    Parameters
    Type Name Description
    System.Int32 index
    System.DateTime item
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved