50 references to LinkBehavior
System.Windows.Forms (29)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (8)
114[DefaultValue(LinkBehavior.SystemDefault)] 115public LinkBehavior LinkBehavior 117get => Properties.GetValueOrDefault(s_propLinkCellLinkBehavior, LinkBehavior.SystemDefault); 123Properties.AddOrRemoveValue(s_propLinkCellLinkBehavior, value, defaultValue: LinkBehavior.SystemDefault); 139internal LinkBehavior LinkBehaviorInternal 143Debug.Assert(value is >= LinkBehavior.SystemDefault and <= LinkBehavior.NeverUnderline); 146Properties.AddOrRemoveValue(s_propLinkCellLinkBehavior, value, defaultValue: LinkBehavior.SystemDefault);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (2)
92[DefaultValue(LinkBehavior.SystemDefault)] 96public LinkBehavior LinkBehavior
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
48private LinkBehavior _linkBehavior = LinkBehavior.SystemDefault; 211[DefaultValue(LinkBehavior.SystemDefault)] 214public LinkBehavior LinkBehavior
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (10)
126public static LinkBehavior GetIELinkBehavior() 146return LinkBehavior.NeverUnderline; 151return LinkBehavior.HoverUnderline; 155return LinkBehavior.AlwaysUnderline; 159return LinkBehavior.AlwaysUnderline; 164LinkBehavior link, 177if (link == LinkBehavior.SystemDefault) 184case LinkBehavior.AlwaysUnderline: 188case LinkBehavior.HoverUnderline: 192case LinkBehavior.NeverUnderline:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
75LinkBehavior = LinkBehavior.AlwaysUnderline,
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (4)
16private LinkBehavior _linkBehavior = LinkBehavior.SystemDefault; 138[DefaultValue(LinkBehavior.SystemDefault)] 141public LinkBehavior LinkBehavior
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
24LinkBehavior = LinkBehavior.HoverUnderline,
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
153LinkBehavior = LinkBehavior.HoverUnderline 280LinkBehavior = LinkBehavior.HoverUnderline
System.Windows.Forms.Tests (18)
LinkLabelTests.cs (5)
84_linkLabel.LinkBehavior.Should().Be(LinkBehavior.SystemDefault); 88[InlineData(LinkBehavior.AlwaysUnderline)] 89[InlineData(LinkBehavior.HoverUnderline)] 90[InlineData(LinkBehavior.NeverUnderline)] 91public void LinkLabel_LinkBehavior_Set_ReturnsExpected(LinkBehavior linkBehavior)
System\Windows\Forms\DataGridViewLinkColumnTests.cs (8)
31_column.LinkBehavior.Should().Be(LinkBehavior.SystemDefault); 99var behavior = LinkBehavior.AlwaysUnderline; 110var behavior = LinkBehavior.NeverUnderline; 125var behavior = _column.LinkBehavior; 313_column.LinkBehavior = LinkBehavior.AlwaysUnderline; 334_column.LinkBehavior = LinkBehavior.AlwaysUnderline;
System\Windows\Forms\ToolStripLabelTests.cs (5)
115_toolStripLabel.LinkBehavior.Should().Be(LinkBehavior.SystemDefault); 119[InlineData(LinkBehavior.AlwaysUnderline)] 120[InlineData(LinkBehavior.HoverUnderline)] 121[InlineData(LinkBehavior.NeverUnderline)] 122public void ToolStripLabel_LinkBehavior_SetAndGet(LinkBehavior behavior)