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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.