ContentControl.DateStorageFormat Property (2007 System)
Gets or sets the format in which dates are saved in a custom XML part by a ContentControl that represents a date picker.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Property DateStorageFormat As WdContentControlDateStorageFormat
'Usage
Dim instance As ContentControl
Dim value As WdContentControlDateStorageFormat
value = instance.DateStorageFormat
instance.DateStorageFormat = value
public WdContentControlDateStorageFormat DateStorageFormat { get; set; }
public:
property WdContentControlDateStorageFormat DateStorageFormat {
WdContentControlDateStorageFormat get ();
void set (WdContentControlDateStorageFormat value);
}
public function get DateStorageFormat () : WdContentControlDateStorageFormat
public function set DateStorageFormat (value : WdContentControlDateStorageFormat)
Property Value
Type: WdContentControlDateStorageFormat
One of the WdContentControlDateStorageFormat values. The default is wdContentControlDateStorageDateTime.
Exceptions
Exception | Condition |
---|---|
COMException | The Type property does not have the value wdContentControlDate. |
Remarks
This property can be used only if the ContentControl represents a date picker.
If the ContentControl 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Word Namespace