HeaderPane
Main
Hide
Share Link
Print

InitialView Property, SftDateCalendar Object

Defines the view shown first.

Syntax

Get

C#SftDateViewConstants View = object.InitialView;
VB.NETView = object.InitialView As SftDateViewConstants
C++enum SftDateViewConstants View = object->InitialView;
enum SftDateViewConstants View = object->GetInitialView();
CHRESULT object->get_InitialView(enum SftDateViewConstants* View);

Put

C#SftDateViewConstants object.InitialView = View;
VB.NETobject.InitialView = View As SftDateViewConstants
C++enum SftDateViewConstants object->InitialView = View;
void object->PutInitialView(enum SftDateViewConstants View);
CHRESULT object->put_InitialView(enum SftDateViewConstants View);

object

A SftDateCalendar object.

View

Defines the view shown first.

NameValueDescription
viewSftDateMonth0Days of a month
viewSftDateYear1Months of a year
viewSftDateDecade2Years of a decade
viewSftDateCentury3Decades of a century

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.