ContentControl.DateCalendarType 属性

定义

获取或设置在表示日期选择器的 ContentControl 中显示的日历的类型。

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

属性值

在控件中显示的日历的类型。 默认值取决于操作系统的当前区域设置。

例外

属性Type没有值 Microsoft.Office.Interop.Word。WdContentControlType.wdContentControlDate。

注解

仅当 表示日期选取器时, ContentControl 才能使用此属性。

默认日历类型取决于操作系统的区域设置。 例如,英语区域设置 (美国) 的默认日历类型为 wdCalendarWestern

适用于