6 writes to LinkArea
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1526private void ResetLinkArea() => LinkArea = new LinkArea(0, -1);
System.Windows.Forms.Tests (5)
LinkLabelTests.cs (5)
54_linkLabel.LinkArea = linkArea1; 57_linkLabel.LinkArea = linkArea2; 66Action 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)
170LinkArea pt = LinkArea; 178throw new ArgumentOutOfRangeException(nameof(LinkArea), value, SR.LinkLabelAreaStart); 183throw new ArgumentOutOfRangeException(nameof(LinkArea), value, SR.LinkLabelAreaLength); 198if (!pt.Equals(LinkArea)) 458return LinkArea.Start == 0 && (LinkArea.IsEmpty || LinkArea.Length == new StringInfo(Text).LengthInTextElements); 659if (LinkArea.Start == 0 && LinkArea.Length == stringInfo.LengthInTextElements) 1697LinkArea 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);