16 references to MeasureCharacterRanges
System.Drawing.Common.Tests (14)
mono\System.Drawing\GraphicsTests.cs (13)
1848
Region[] regions = g.
MeasureCharacterRanges
(null, _font, default, null);
1851
regions = g.
MeasureCharacterRanges
(string.Empty, _font, default, null);
1857
regions = g.
MeasureCharacterRanges
(null, null, default, null);
1860
regions = g.
MeasureCharacterRanges
(string.Empty, null, default, null);
1872
Region[] regions = g.
MeasureCharacterRanges
("Mono", _font, default, new StringFormat());
1884
Assert.Throws<ArgumentNullException>(() => g.
MeasureCharacterRanges
("a", null, default, null));
1902
Region[] regions = g.
MeasureCharacterRanges
(text, _font, layout_rect, string_format);
1933
g.
MeasureCharacterRanges
(text, _font, layout_rect, string_format);
1971
Region[] regions = g.
MeasureCharacterRanges
(text, _font, layout_rect, string_format);
1976
regions = g.
MeasureCharacterRanges
(text, _font, layout_rect, string_format);
1986
regions = g.
MeasureCharacterRanges
(text, _font, layout_rect, string_format);
2000
Assert.Throws<ArgumentException>(() => g.
MeasureCharacterRanges
("Mono", _font, default, null));
2014
: gfx.
MeasureCharacterRanges
("abc", font, rect, format);
mono\System.Imaging\MetafileTest.cs (1)
318
Region[] region = g.
MeasureCharacterRanges
(text, test_font, rect, sf);
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
534
Region[] textRegions = g.
MeasureCharacterRanges
(text, alwaysUnderlined, ClientRectWithPadding, textFormat);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2263
using Region textRegion = e.Graphics.
MeasureCharacterRanges
(exceptionText, errorFont, textRect, stringFormat)[0];