10 references to MeasureString
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
93
Dim labelSizeNeeded As SizeF = labelGraphics.
MeasureString
(prompt, Label.Font, Label.Width)
PresentationUI (5)
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
551
int heightIntent = (int)graphics.
MeasureString
(item._reason,
561
heightSummary = (int)graphics.
MeasureString
(item._subjectName,
565
heightSignBy = (int)graphics.
MeasureString
(item._signBy,
569
heightLocale = (int)graphics.
MeasureString
(item._location,
576
heightSummary = (int)graphics.
MeasureString
(item._summaryMessage,
System.Drawing.Common.Tests (3)
mono\System.Drawing\GraphicsTests.cs (3)
1622
SizeF size0 = useSpan ? g.MeasureString(s.AsSpan(), _font, 0) : g.
MeasureString
(s, _font, 0);
1623
SizeF sizeN = useSpan ? g.MeasureString(s.AsSpan(), _font, int.MinValue) : g.
MeasureString
(s, _font, int.MinValue);
1624
SizeF 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)
219
textSize = Size.Ceiling(g.
MeasureString
(messageText, Font, textSize.Width));