35 references to LinkArea
System.Windows.Forms (5)
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
73
return new
LinkArea
(values[0], values[1]);
125
return new
LinkArea
(
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
166
? new
LinkArea
(0, 0)
167
: new
LinkArea
(_links[0].Start, _links[0].Length);
1526
private void ResetLinkArea() => LinkArea = new
LinkArea
(0, -1);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
120
Value = new
LinkArea
(_sampleEdit.SelectionStart, _sampleEdit.SelectionLength);
System.Windows.Forms.Design.Tests (4)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUITests.cs (3)
51
LinkArea linkArea =
new
(7, 4);
82
_linkAreaUI.Start(new
LinkArea
(1, 2));
92
object? testValue = new
LinkArea
(3, 4);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (1)
21
LinkArea value =
new
(0, 5);
System.Windows.Forms.Tests (25)
LinkLabelTests.cs (6)
45
_linkLabel.LinkArea.Should().Be(new
LinkArea
(0, 0));
51
LinkArea linkArea1 = new
LinkArea
(1, 2);
52
LinkArea linkArea2 = new
LinkArea
(3, 4);
66
Action act = () => _linkLabel.LinkArea = new
LinkArea
(start, length);
74
_linkLabel.LinkArea = new
LinkArea
(1, 2);
77
_linkLabel.LinkArea = new
LinkArea
(0, 0);
SerializableTypesTests.cs (1)
106
LinkArea linkArea =
new
(5, 7);
System\Windows\Forms\LinkAreaConverterTests.cs (7)
26
yield return new object[] { "1,2", new
LinkArea
(1, 2) };
27
yield return new object[] { " 1 , 1", new
LinkArea
(1, 1) };
76
Assert.Equal("1, 2", converter.ConvertTo(new
LinkArea
(1, 2), typeof(string)));
77
Assert.Equal("1, 2", converter.ConvertTo(null, null, new
LinkArea
(1, 2), typeof(string)));
78
Assert.Equal("1, 2", converter.ConvertTo(null, CultureInfo.InvariantCulture, new
LinkArea
(1, 2), typeof(string)));
85
InstanceDescriptor descriptor = Assert.IsType<InstanceDescriptor>(converter.ConvertTo(new
LinkArea
(1, 2), typeof(InstanceDescriptor)));
123
Assert.Equal(new
LinkArea
(1, 2), area);
System\Windows\Forms\LinkAreaTests.cs (11)
28
LinkArea area =
new
(start, length);
66
yield return new object[] { new
LinkArea
(1, 2), new
LinkArea
(1, 2), true };
67
yield return new object[] { new
LinkArea
(1, 2), new
LinkArea
(2, 2), false };
68
yield return new object[] { new
LinkArea
(1, 2), new
LinkArea
(1, 3), false };
70
yield return new object[] { new
LinkArea
(1, 2), new(), false };
71
yield return new object[] { new
LinkArea
(1, 2), null, false };
91
LinkArea area =
new
(1, 2);
98
LinkArea area =
new
(1, 2);