DatePickerContentControl.DateStorageFormat 属性

定义

获取或设置一种格式,DatePickerContentControl 会以此格式将数据保存到自定义 XML 部件。

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

属性值

WdContentControlDateStorageFormat 值之一。 默认值为 wdContentControlDateStorageDateTime。

注解

DatePickerContentControl如果 绑定到文档中的自定义 XML 部件DateStorageFormat 属性指定控件在 XML 中保存日期的方式。 可以将日期保留为 XML 架构日期 (xsd:date) 、XML 架构日期/时间 (xsd:dateTime) 或文本。

有关将内容控件绑定到自定义 XML 部件的详细信息,请参阅 内容控件自定义 XML 部件概述

适用于