HelpProvider.SetHelpKeyword(Control, String) HelpProvider.SetHelpKeyword(Control, String) HelpProvider.SetHelpKeyword(Control, String) HelpProvider.SetHelpKeyword(Control, String) Method

定义

指定在用户调用指定控件的帮助信息时用于检索帮助的关键字。Specifies the keyword used to retrieve Help when the user invokes Help for the specified control.

public:
 virtual void SetHelpKeyword(System::Windows::Forms::Control ^ ctl, System::String ^ keyword);
public virtual void SetHelpKeyword (System.Windows.Forms.Control ctl, string keyword);
abstract member SetHelpKeyword : System.Windows.Forms.Control * string -> unit
override this.SetHelpKeyword : System.Windows.Forms.Control * string -> unit
Public Overridable Sub SetHelpKeyword (ctl As Control, keyword As String)

参数

ctl
Control Control Control Control

Control,指定要为其设置帮助主题的控件。A Control that specifies the control for which to set the Help topic.

keyword
String String String String

与控件关联的帮助关键字。The Help keyword to associate with the control.

注解

"帮助" 关键字提供了用于从HelpNamespace属性所指定的帮助文件中检索与此控件关联的帮助的关键信息。The Help keyword provides the key information to retrieve the Help associated with this control from the Help file specified by the HelpNamespace property. 若要将帮助打开到特定主题, 应以topicName格式传递关键字。To open Help to a specific topic, the keyword should be passed in the form topicName.htm. 若要清除关键字, 请SetHelpKeyword keyword使用值null调用方法。To clear the keyword, call the SetHelpKeyword method with a keyword value of null.

适用于

另请参阅