Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcDropDownCalendar Class / GetDatesInView Method / GetDatesInView(PickDayType) Method
One of the PickDayType enumeration values indicates the type used for pick days.


In This Topic
    GetDatesInView(PickDayType) Method
    In This Topic
    Get the dates of the given type in view.
    Syntax
    'Declaration
     
    Public Overloads Function GetDatesInView( _
       ByVal type As PickDayType _
    ) As Date()
    'Usage
     
    Dim instance As GcDropDownCalendar
    Dim type As PickDayType
    Dim value() As Date
     
    value = instance.GetDatesInView(type)
    public DateTime[] GetDatesInView( 
       PickDayType type
    )

    Parameters

    type
    One of the PickDayType enumeration values indicates the type used for pick days.

    Return Value

    A System.DateTime array includes all dates accord the pick requirement.
    Exceptions
    ExceptionDescription
    if type is a invalid value of PickDayType.
    Remarks

    The return value of this method is different when DisplayMode is set to different GrapeCity.Windows.InputMan.CalendarMode enumeration value.

    If the DisplayMode is GrapeCity.Windows.InputMan.CalendarMode.Month, the return value will be retrieved from the month displayed in control.

    If the DisplayMode is GrapeCity.Windows.InputMan.CalendarMode.Year, the return value will be retrieved from the year displayed in control.

    If the DisplayMode is GrapeCity.Windows.InputMan.CalendarMode.Decade, the return value will be retrieved from the decade displayed in control.

    See Also