4 writes to Length
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
192_links[0].Length = value.Length;
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
131Length = length,
System.Windows.Forms.Tests (2)
System\Windows\Forms\LinkTests.cs (2)
104Length = value 109link.Length = value;
23 references to Length
System.Windows.Forms (15)
System\Windows\Forms\Controls\Labels\LinkConverter.cs (3)
95intConverter.ConvertToString(context, culture, link.Length) 106new object[] { link.Start, link.Length }, 112new object[] { link.Start, link.Length, link.LinkData },
System\Windows\Forms\Controls\Labels\LinkLabel.cs (10)
167: new LinkArea(_links[0].Start, _links[0].Length); 542int charEnd = ConvertToCharIndex(link.Start + link.Length, text); 634int charEnd = ConvertToCharIndex(link.Start + link.Length, text); 637int length = Math.Min(link.Length, textLen - link.Start); 1390int charEnd = ConvertToCharIndex(link.Start + link.Length, text); 1491charEnd = ConvertToCharIndex(test.Start + test.Length, text); 1511charEnd = ConvertToCharIndex(test.Start + test.Length, text); 1670if (left.Length < 0) 1681int minEnd = Math.Min(left.Start + left.Length, right.Start + right.Length);
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
117int end = ConvertToCharIndex(_owningLink.Start + _owningLink.Length, text);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
140if (value is not null && value.Length != 0)
System.Windows.Forms.Tests (8)
System\Windows\Forms\LinkCollectionTests.cs (1)
89link.Length.Should().Be(length);
System\Windows\Forms\LinkConverterTests.cs (2)
142Assert.Equal(expectedLink.Length, actualLink.Length);
System\Windows\Forms\LinkTests.cs (5)
15Assert.Equal(0, link.Length); 34Assert.Equal(expectedLength, link.Length); 53Assert.Equal(expectedLength, link.Length); 106Assert.Equal(expected, link.Length); 110Assert.Equal(expected, link.Length);