19 references to CharacterRange
System.Drawing.Common.Tests (17)
mono\System.Drawing\GraphicsTests.cs (4)
1895
CharacterRange[] ranges = [new
CharacterRange
(0, 5), new
CharacterRange
(5, 9)];
1918
CharacterRange[] ranges = [new
CharacterRange
(first, length)];
1962
CharacterRange[] ranges = [new
CharacterRange
(5, 4)];
mono\System.Imaging\MetafileTest.cs (2)
306
CharacterRange[] ranges = [new
CharacterRange
(0, 5), new
CharacterRange
(5, 9)];
System\Drawing\CharacterRangeTests.cs (9)
22
CharacterRange range =
new
(First, Length);
63
yield return new object[] { new
CharacterRange
(1, 2), new
CharacterRange
(1, 2), true };
64
yield return new object[] { new
CharacterRange
(1, 2), new
CharacterRange
(2, 2), false };
65
yield return new object[] { new
CharacterRange
(1, 2), new
CharacterRange
(1, 1), false };
66
yield return new object[] { new
CharacterRange
(1, 2), new(), false };
71
yield return new object[] { new
CharacterRange
(1, 2), null, false };
System\Drawing\StringFormatTests.cs (2)
201
yield return new object[] { new CharacterRange[] {
new
(1, 2) } };
202
yield return new object[] { new CharacterRange[] {
new
(-1, -1) } };
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
638
ranges.Add(new
CharacterRange
(charStart, ConvertToCharIndex(link.Start + length, text) - charStart));
642
ranges.Add(new
CharacterRange
(0, text.Length));