Share via


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 元件概觀

適用於