Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcDropDownCalendar Class / DisplayMode Property


In This Topic
    DisplayMode Property
    In This Topic
    Gets or sets a value that indicates whether the calendar displays a month, year, or decade. This is a dependency property.
    Syntax
    '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;}

    Property Value

    A value that indicates what length of time the GcDropDownCalendar should display.
    Exceptions
    ExceptionDescription
    Occurs when value set to the DisplayMode property is undefined in the CalendarMode enumeration.
    Remarks

    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.

    See Also