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