次の方法で共有


ContentControl.DateDisplayFormat プロパティ

定義

日付選択を表す ContentControl に表示される日付の形式を指定する文字列を取得または設定します。

public:
 property System::String ^ DateDisplayFormat { System::String ^ get(); void set(System::String ^ value); };
public string DateDisplayFormat { get; set; }
member this.DateDisplayFormat : string with get, set
Public Property DateDisplayFormat As String

プロパティ値

ContentControl が日付を表示する形式を指定する文字列。

例外

プロパティに Type Microsoft.Office.Interop.Word の値がありません。WdContentControlType.wdContentControlDate。

注釈

このプロパティは、 が日付ピッカーを ContentControl 表す場合にのみ使用できます。

既定の日付形式は、Microsoft Office Wordで指定されている形式設定です。通常はオペレーティング システムのロケール設定によって異なります。 たとえば、ロケール英語 (米国) の日付の既定の形式は ですmm/dd/yyyy

適用対象