[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.GetDatesInView

GetDatesInView Method

GetDatesInView(PickDayType)

Get the dates of the given type in view.

Declaration
public DateTime[] GetDatesInView(PickDayType type)
Public Function GetDatesInView(type As PickDayType) As Date()
Parameters
Type Name Description
PickDayType type

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

Returns
Type Description
DateTime[]

A DateTime array includes all dates accord the pick requirement.

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.

Exceptions
Type Condition
InvalidEnumArgumentException

if type is a invalid value of PickDayType.

GetDatesInView()

Get all the dates in view.

Declaration
public DateTime[] GetDatesInView()
Public Function GetDatesInView() As Date()
Returns
Type Description
DateTime[]

A DateTime array includes all dates in view.

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.