TaskDialogButton.Text 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定這個控制項的相關文字。
public:
property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
public string? Text { get; set; }
member this.Text : string with get, set
Public Property Text As String
屬性值
與這個控制項關聯的文字。 預設值是 null
。
例外狀況
備註
如果此按鈕是標準按鈕,則您無法設定此屬性,因為 OS 會提供其文字。
當顯示或流覽對話方塊時,此屬性不得為 null
或空白字串,否則作業將會失敗。