ArcObjects Library Reference (SystemUI)  

ICommand.HelpFile Property

The name of the help file associated with this command.

[Visual Basic .NET]
Public ReadOnly Property HelpFile As String
[C#]
public string HelpFile {get;}
[C++]
HRESULT get_HelpFile(
  BSTR* HelpFile
);
[C++]

Parameters

HelpFile [out, retval]   HelpFile is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The HelpFile property is used to specify the name of the help file or url that contains the context sensitive help topic for your custom command.

Remarks

Implement this function to provide contextual (F1) help for your custom command.  Two types of help are supported: chm file help and web help.

To associate a help topic in a chm file, use the HelpFile property to specify the the name of the chm file and the HelpContextID property to specify the mapped numeric value for the specific topic you want to link to. As part of your deployment strategy, register the .chm file as a new string value in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\HTMLHelp.

To link to a website, simply return the url.

In both cases, end-users of your command can access the help by pressing the F1 key when hovering over the command.  Commands with help display a special footnote in their tooltip indicating so.

See Also

ICommand Interface | ICommand.HelpContextID Property