Defines the view shown first.
Get
| C# | SftDateViewConstants View = object.InitialView; |
| VB.NET | View = object.InitialView As SftDateViewConstants |
| C++ | enum SftDateViewConstants View = object->InitialView; enum SftDateViewConstants View = object->GetInitialView(); |
| C | HRESULT object->get_InitialView(enum SftDateViewConstants* View); |
Put
| C# | SftDateViewConstants object.InitialView = View; |
| VB.NET | object.InitialView = View As SftDateViewConstants |
| C++ | enum SftDateViewConstants object->InitialView = View; void object->PutInitialView(enum SftDateViewConstants View); |
| C | HRESULT object->put_InitialView(enum SftDateViewConstants View); |
object
View
Defines the view shown first.
| Name | Value | Description |
|---|---|---|
| viewSftDateMonth | 0 | Days of a month |
| viewSftDateYear | 1 | Months of a year |
| viewSftDateDecade | 2 | Years of a decade |
| viewSftDateCentury | 3 | Decades of a century |
The InitialView property defines the view a calendar shows first. The default is viewSftDateMonth. A month calendar control switches to it when it is set; the dropdown calendar of a date field control shows it each time the dropdown opens. p A view that is not allowed (AllowedViews) is replaced by the nearest allowed view. The view the user is in is retrieved using SftCalendar.View. p The setting applies to a month calendar control and to the dropdown calendar of a date field control.
See Also SftDateCalendar Object | Object Hierarchy | Calendar Layout