ContentControl.DateCalendarType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置在表示日期选择器的 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
。