ToolTip.GetToolTip(Control) 方法

定义

检索与指定控件关联的工具提示文本。

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

参数

control
Control

Control要为其检索文本的ToolTip项。

返回

String包含指定控件的工具提示文本。

注解

GetToolTip使用该方法,可以检索任何控件的工具提示文本。 如果工具提示文本在应用程序中动态更改,则可以使用此方法,根据应用程序的状态,随时了解显示的文本。 若要更改控件显示的文本,请使用 SetToolTip 该方法。

适用于

另请参阅