53 references to HelpNavigator
System.Windows.Forms (40)
System\Windows\Forms\Dialogs\MessageBox.cs (4)
220
HelpNavigator
navigator)
238
HelpNavigator
navigator)
255
HelpNavigator
navigator,
275
HelpNavigator
navigator,
System\Windows\Forms\Help\Help.cs (24)
24
ShowHelp(parent, url,
HelpNavigator
.TableOfContents, null);
30
public static void ShowHelp(Control? parent, string? url,
HelpNavigator
navigator)
42
ShowHelp(parent, url,
HelpNavigator
.Topic, keyword);
46
ShowHelp(parent, url,
HelpNavigator
.TableOfContents, null);
53
public static void ShowHelp(Control? parent, string? url,
HelpNavigator
command, object? parameter)
71
ShowHelp(parent, url,
HelpNavigator
.Index, null);
95
ShowHTML10Help(parent, null,
HelpNavigator
.Topic, pop);
102
private static unsafe void ShowHTML10Help(Control? parent, string? url,
HelpNavigator
command, object? param)
194
private static void ShowHTMLFile(Control? parent, string? url,
HelpNavigator
command, object? param)
200
case
HelpNavigator
.TableOfContents:
201
case
HelpNavigator
.Find:
202
case
HelpNavigator
.Index:
205
case
HelpNavigator
.Topic:
314
private static unsafe HTML_HELP_COMMAND MapCommandToHTMLCommand(
HelpNavigator
command, string? param, out object? htmlParam)
318
if (string.IsNullOrEmpty(param) && (command ==
HelpNavigator
.AssociateIndex || command ==
HelpNavigator
.KeywordIndex))
325
case
HelpNavigator
.Topic:
328
case
HelpNavigator
.TableOfContents:
331
case
HelpNavigator
.Index:
334
case
HelpNavigator
.Find:
348
case
HelpNavigator
.TopicId:
360
case
HelpNavigator
.KeywordIndex:
361
case
HelpNavigator
.AssociateIndex:
370
return command ==
HelpNavigator
.KeywordIndex ? HH_KEYWORD_LOOKUP : HH_ALINK_LOOKUP;
System\Windows\Forms\Help\HelpInfo.cs (5)
17
Navigator =
HelpNavigator
.TableOfContents;
26
Navigator =
HelpNavigator
.TableOfContents;
31
public HelpInfo(string helpfilepath,
HelpNavigator
navigator)
40
public HelpInfo(string helpfilepath,
HelpNavigator
navigator, object? param)
55
public
HelpNavigator
Navigator { get; }
System\Windows\Forms\Help\HelpProvider.cs (7)
24
private readonly Dictionary<Control,
HelpNavigator
> _navigators = [];
72
[DefaultValue(
HelpNavigator
.AssociateIndex)]
75
public virtual
HelpNavigator
GetHelpNavigator(Control ctl)
78
return _navigators.TryGetValue(ctl, out
HelpNavigator
value) ? value :
HelpNavigator
.AssociateIndex;
116
HelpNavigator
navigator = GetHelpNavigator(ctl);
204
public virtual void SetHelpNavigator(Control ctl,
HelpNavigator
navigator)
System.Windows.Forms.Tests (12)
System\Windows\Forms\HelpProviderTests.cs (12)
104
Assert.Equal(
HelpNavigator
.AssociateIndex, provider.GetHelpNavigator(new Control()));
284
[EnumData<
HelpNavigator
>]
285
public void HelpProvider_SetHelpNavigator_GetHelpNavigator_ReturnsExpected(
HelpNavigator
navigator)
301
[EnumData<
HelpNavigator
>]
302
public void HelpProvider_SetHelpNavigator_WithShowHelpTrue_ReturnsExpected(
HelpNavigator
navigator)
319
[EnumData<
HelpNavigator
>]
320
public void HelpProvider_SetHelpNavigator_WithShowHelpFalse_ReturnsExpected(
HelpNavigator
navigator)
337
[EnumData<
HelpNavigator
>]
338
[InvalidEnumData<
HelpNavigator
>]
339
public void HelpProvider_SetHelpNavigator_NullCtl_ThrowsArgumentNullException(
HelpNavigator
navigator)
346
[InvalidEnumData<
HelpNavigator
>]
347
public void HelpProvider_SetHelpNavigator_InvalidNavigator_ThrowsInvalidEnumArgumentException(
HelpNavigator
navigator)
WinFormsControlsTest (1)
MessageBoxes.cs (1)
31
"mmc.chm",
HelpNavigator
.KeywordIndex, "ovals");