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。
例外狀況
備註
如果這個按鈕是標準按鈕,你就無法設定這個屬性,因為它的文字會由作業系統提供。
此屬性在顯示或導航對話時不得為 null 空字串;否則操作將失敗。