5 references to MeasureText
System.Windows.Forms.Tests (5)
System\Windows\Forms\TextRendererTests.cs (5)
490Size result = TextRenderer.MeasureText(graphics, text, font, proposedSize); 495Assert.Equal(result, TextRenderer.MeasureText(graphics, text, font, proposedSize)); 523Assert.Equal(Size.Empty, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400))); 552TextRenderer.MeasureText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Size(300, 400)); 565Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400)));