10 references to MeasureString
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
92Dim labelSizeNeeded As SizeF = labelGraphics.MeasureString(prompt, Label.Font, Label.Width)
PresentationUI (5)
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
542int heightIntent = (int)graphics.MeasureString(item._reason, 552heightSummary = (int)graphics.MeasureString(item._subjectName, 556heightSignBy = (int)graphics.MeasureString(item._signBy, 560heightLocale = (int)graphics.MeasureString(item._location, 567heightSummary = (int)graphics.MeasureString(item._summaryMessage,
System.Drawing.Common.Tests (3)
mono\System.Drawing\GraphicsTests.cs (3)
1622SizeF size0 = useSpan ? g.MeasureString(s.AsSpan(), _font, 0) : g.MeasureString(s, _font, 0); 1623SizeF sizeN = useSpan ? g.MeasureString(s.AsSpan(), _font, int.MinValue) : g.MeasureString(s, _font, int.MinValue); 1624SizeF sizeP = useSpan ? g.MeasureString(s.AsSpan(), _font, int.MaxValue) : g.MeasureString(s, _font, int.MaxValue);
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
211textSize = Size.Ceiling(g.MeasureString(messageText, Font, textSize.Width));