ToolTip.GetToolTip(Control) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取與指定控制項相關的工具提示文字。
public:
System::String ^ GetToolTip(System::Windows::Forms::Control ^ control);
public string GetToolTip(System.Windows.Forms.Control control);
public string? GetToolTip(System.Windows.Forms.Control? control);
member this.GetToolTip : System.Windows.Forms.Control -> string
Public Function GetToolTip (control As Control) As String
參數
傳回
String A 包含指定控制項的工具提示文字。
備註
使用此 GetToolTip 方法,您可以取得任何控制項的工具提示文字。 如果應用程式中的提示文字動態變化,你可以用這個方法根據應用程式狀態,找出在任何點顯示了哪些文字。 要更改控制項顯示的文字,請使用該 SetToolTip 方法。