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