ContentControl.DateCalendarType 属性

定义

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

public Microsoft.Office.Interop.Word.WdCalendarType DateCalendarType { get; set; }

属性值

WdCalendarType

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

例外

Type 属性不具有值 Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlDate

注解

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

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

适用于