Udostępnij za pośrednictwem


ContentControl.DateDisplayLocale Property (2007 System)

Gets or sets the language format of the date that is 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 DateDisplayLocale As WdLanguageID
'Usage
Dim instance As ContentControl 
Dim value As WdLanguageID 

value = instance.DateDisplayLocale

instance.DateDisplayLocale = value
public WdLanguageID DateDisplayLocale { get; set; }
public:
property WdLanguageID DateDisplayLocale {
    WdLanguageID get ();
    void set (WdLanguageID value);
}
public function get DateDisplayLocale () : WdLanguageID 
public function set DateDisplayLocale (value : WdLanguageID)

Property Value

Type: WdLanguageID
One of the WdLanguageID values.

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 value of the DateDisplayLocale property depends on the editing language specified in Microsoft Office Word. For example, the default language format for English (United States) is wdEnglishUS.

.NET Framework Security

See Also

Reference

ContentControl Class

ContentControl Members

Microsoft.Office.Tools.Word Namespace