Partilhar via


ContentControl.DateCalendarType Property

Gets or sets the type of calendar that is displayed in a ContentControl that represents a date picker.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Property DateCalendarType As WdCalendarType
WdCalendarType DateCalendarType { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdCalendarType
The type of calendar that is displayed in the control. The default depends on the current locale setting of the operating system.

Exceptions

Exception Condition
COMException

The Type property does not have the value Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlDate.

Remarks

This property can be used only if the ContentControl represents a date picker.

The default calendar type depends on the locale setting of the operating system. For example, the default calendar type for the locale English (United States) is wdCalendarWestern.

.NET Framework Security

See Also

Reference

ContentControl Interface

Microsoft.Office.Tools.Word Namespace