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包含指定控件的工具提示文本。
注解
GetToolTip使用该方法,可以检索任何控件的工具提示文本。 如果工具提示文本在应用程序中动态更改,则可以使用此方法,根据应用程序的状态,随时了解显示的文本。 若要更改控件显示的文本,请使用 SetToolTip 该方法。