5 references to MeasureString
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
1605
SizeF size = g.
MeasureString
("a", _font, SizeF.Empty);
1611
size = g.
MeasureString
(string.Empty, _font, SizeF.Empty);
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.MeasureTextHelper.cs (2)
23
? g.
MeasureString
(text, font, size)
33
? g.
MeasureString
(text, font, size)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1006
int textWidth = Size.Ceiling(e.Graphics.
MeasureString
(columnName, e.Font!, new SizeF(bounds.Width, bounds.Height))).Width;