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