'Declaration Public Property DisplayMode As CalendarMode
'Usage Dim instance As GcDropDownCalendar Dim value As CalendarMode instance.DisplayMode = value value = instance.DisplayMode
public CalendarMode DisplayMode {get; set;}
'Declaration Public Property DisplayMode As CalendarMode
'Usage Dim instance As GcDropDownCalendar Dim value As CalendarMode instance.DisplayMode = value value = instance.DisplayMode
public CalendarMode DisplayMode {get; set;}
Exception | Description |
---|---|
System.ArgumentException | Occurs when value set to the DisplayMode property is undefined in the CalendarMode enumeration. |
A GcDropDownCalendar can display a month, a year, or a decade.
The DisplayMode just can be set to the value between StartDisplayMode and EndDisplayMode. When DisplayMode property value is same as StartDisplayMode, mouse click and keyboard operation ( Space/Enter ) will select dates according to the SelectionMode; if DisplayMode property value is higher than StartDisplayMode, i.e. DisplayMode: GrapeCity.Windows.InputMan.CalendarMode.Year, StartDisplayMode is GrapeCity.Windows.InputMan.CalendarMode.Month, mouse click and keyboard operation ( Space/Enter ) will work as ZoomIn operation.
If you set DisplayMode to a value that is less than the StartDisplayMode property, DisplayMode is set to StartDisplayMode. If you set DisplayMode to a value that is greater than the EndDisplayMode property, DisplayMode is set to EndDisplayMode.