Share via


ContentControl.DateCalendarType Property

Definition

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

public:
 property Microsoft::Office::Interop::Word::WdCalendarType DateCalendarType { Microsoft::Office::Interop::Word::WdCalendarType get(); void set(Microsoft::Office::Interop::Word::WdCalendarType value); };
public Microsoft.Office.Interop.Word.WdCalendarType DateCalendarType { get; set; }
member this.DateCalendarType : Microsoft.Office.Interop.Word.WdCalendarType with get, set
Public Property DateCalendarType As WdCalendarType

Property Value

The type of calendar that is displayed in the control. The default depends on the current locale setting of the operating system.

Exceptions

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.

Applies to