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