6 writes to LinkArea
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1526
private void ResetLinkArea() =>
LinkArea
= new LinkArea(0, -1);
System.Windows.Forms.Tests (5)
LinkLabelTests.cs (5)
54
_linkLabel.
LinkArea
= linkArea1;
57
_linkLabel.
LinkArea
= linkArea2;
66
Action act = () => _linkLabel.
LinkArea
= new LinkArea(start, length);
74
_linkLabel.
LinkArea
= new LinkArea(1, 2);
77
_linkLabel.
LinkArea
= new LinkArea(0, 0);
16 references to LinkArea
System.Windows.Forms (10)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (10)
170
LinkArea pt =
LinkArea
;
178
throw new ArgumentOutOfRangeException(nameof(
LinkArea
), value, SR.LinkLabelAreaStart);
183
throw new ArgumentOutOfRangeException(nameof(
LinkArea
), value, SR.LinkLabelAreaLength);
198
if (!pt.Equals(
LinkArea
))
458
return
LinkArea
.Start == 0 && (
LinkArea
.IsEmpty ||
LinkArea
.Length == new StringInfo(Text).LengthInTextElements);
659
if (
LinkArea
.Start == 0 &&
LinkArea
.Length == stringInfo.LengthInTextElements)
1697
LinkArea pt =
LinkArea
;
System.Windows.Forms.Tests (6)
LinkLabelTests.cs (6)
20
_linkLabel.
LinkArea
.IsEmpty.Should().BeTrue();
21
_linkLabel.
LinkArea
.Start.Should().Be(0);
22
_linkLabel.
LinkArea
.Length.Should().Be(0);
45
_linkLabel.
LinkArea
.Should().Be(new LinkArea(0, 0));
55
_linkLabel.
LinkArea
.Should().Be(linkArea1);
58
_linkLabel.
LinkArea
.Should().Be(linkArea2);