Xceed Grid for WinForms v4.3 Documentation
Xceed.Editors.v2.6 Assembly / Xceed.Editors Namespace / WinCalendar Class / CurrentDate Property


In This Topic
    CurrentDate Property
    In This Topic
    Gets or sets the current date.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The current date (the day which currently has the focus rectangle).")>
    <CategoryAttribute("Data")>
    <EditorAttribute("Xceed.Editors.Design.CalendarDateTypeUIEditor,Xceed.Editors.v2.6.Design,Version=2.6.25208.5768,Culture=neutral,PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)>
    Public Property CurrentDate As Date
    'Usage
     
    Dim instance As WinCalendar
    Dim value As Date
     
    instance.CurrentDate = value
     
    value = instance.CurrentDate
    [Description("The current date (the day which currently has the focus rectangle).")]
    [Category("Data")]
    [Editor("Xceed.Editors.Design.CalendarDateTypeUIEditor,Xceed.Editors.v2.6.Design,Version=2.6.25208.5768,Culture=neutral,PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)]
    public DateTime CurrentDate {get; set;}

    Property Value

    A System.DateTime value representing the current date. By default, DefaultCurrentDate.
    Remarks

    The current date is represented by a focus rectangle when navigating through the calendar.

    The current date and the SelectedDate may or may not be the same day.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also