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