DatePickerContentControl.DateStorageFormat Property

Definition

Gets or sets the format in which the DatePickerContentControl saves dates in a custom XML part.

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

Property Value

One of the WdContentControlDateStorageFormat values. The default is wdContentControlDateStorageDateTime.

Remarks

If the DatePickerContentControl is bound to a custom XML part in the document, the DateStorageFormat property specifies how the control saves dates in XML. You can persist dates as an XML schema date (xsd:date), an XML schema date/time (xsd:dateTime), or as text.

For more information about binding content controls to custom XML parts, see Content Controls and Custom XML Parts Overview.

Applies to