10 references to MeasureString
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
92
Dim labelSizeNeeded As SizeF = labelGraphics.
MeasureString
(prompt, Label.Font, Label.Width)
PresentationUI (5)
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
542
int heightIntent = (int)graphics.
MeasureString
(item._reason,
552
heightSummary = (int)graphics.
MeasureString
(item._subjectName,
556
heightSignBy = (int)graphics.
MeasureString
(item._signBy,
560
heightLocale = (int)graphics.
MeasureString
(item._location,
567
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)
211
textSize = Size.Ceiling(g.
MeasureString
(messageText, Font, textSize.Width));