HelpProvider.GetShowHelp(Control) HelpProvider.GetShowHelp(Control) HelpProvider.GetShowHelp(Control) HelpProvider.GetShowHelp(Control) Method

定义

返回一个值,此值指示是否显示指定控件的帮助。Returns a value indicating whether the specified control's Help should be displayed.

public:
 virtual bool GetShowHelp(System::Windows::Forms::Control ^ ctl);
public virtual bool GetShowHelp (System.Windows.Forms.Control ctl);
abstract member GetShowHelp : System.Windows.Forms.Control -> bool
override this.GetShowHelp : System.Windows.Forms.Control -> bool
Public Overridable Function GetShowHelp (ctl As Control) As Boolean

参数

ctl
Control Control Control Control

将为其显示帮助信息的 ControlA Control for which Help will be displayed.

返回

如果将为此控件显示帮助,则为 true;否则为 falsetrue if Help will be displayed for the control; otherwise, false.

注解

当使用SetHelpKeywordSetHelpString方法将关键字或提示与指定控件关联时, 调用此方法会自动返回trueWhen you use the SetHelpKeyword or SetHelpString method to associate a keyword or prompt with a specified control, calling this method automatically returns true. 可以通过将传递false SetShowHelp给方法来重写此行为。You can override this behavior by passing false to the SetShowHelp method.

适用于

另请参阅