Udostępnij za pośrednictwem


ContentControl.DateDisplayFormat Property (2007 System)

Gets or sets a string that specifies the format of dates that are displayed in 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 DateDisplayFormat As String
'Usage
Dim instance As ContentControl 
Dim value As String 

value = instance.DateDisplayFormat

instance.DateDisplayFormat = value
public string DateDisplayFormat { get; set; }
public:
property String^ DateDisplayFormat {
    String^ get ();
    void set (String^ value);
}
public function get DateDisplayFormat () : String 
public function set DateDisplayFormat (value : String)

Property Value

Type: System.String
A string that specifies the format in which the ContentControl displays dates.

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.

The default date format is the format setting specified in Microsoft Office Word, which usually depends on the locale setting of the operating system. For example, the default format of dates for the locale English (United States) is mm/dd/yyyy.

.NET Framework Security

See Also

Reference

ContentControl Class

ContentControl Members

Microsoft.Office.Tools.Word Namespace