15 references to MeasureText
System.Windows.Forms (15)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1452
textSize = TextRenderer.
MeasureText
(text, font, proposedSize, this.TextFormatFlags);
winforms\Managed\System\WinForms\ComboBox.cs (2)
936
Size textSize = TextRenderer.
MeasureText
(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
946
Size textSize = TextRenderer.
MeasureText
(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
2867
Size requiredSize = TextRenderer.
MeasureText
(text, font, new Size(maxWidth, System.Int32.MaxValue), flags);
2915
textSize = TextRenderer.
MeasureText
(text, font, new Size((int)maxWidth, System.Int32.MaxValue), flags);
2950
return TextRenderer.
MeasureText
(text, font, new Size(System.Int32.MaxValue, System.Int32.MaxValue), flags);
2978
textSize = TextRenderer.
MeasureText
(text, font, new Size((int)maxWidth, maxHeight), flags);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (2)
323
Size sizeRequired = TextRenderer.
MeasureText
(text, font, new Size(System.Int32.MaxValue, System.Int32.MaxValue), flags);
331
Size sizeConstraint = TextRenderer.
MeasureText
(text, font, sizeCell, flags);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (3)
57
Size textSize = TextRenderer.
MeasureText
(obj.ToString(), font, new Size(Int16.MaxValue, Int16.MaxValue), TextFormatFlags.SingleLine);
600
Size prefSize = TextRenderer.
MeasureText
(text, font, proposedConstraints, flags);
619
unconstrainedPreferredSize = TextRenderer.
MeasureText
(text, font, LayoutUtils.MaxSize, flags);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
680
Size textSize = TextRenderer.
MeasureText
(text, alwaysUnderlined, clientSize, flags);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
987
Size textSize = TextRenderer.
MeasureText
(this.Text, this.Font, proposedConstraints, format);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
239
textSize = Size.Ceiling(TextRenderer.
MeasureText
(messageText, Font, textSize, TextFormatFlags.WordBreak));