Provides the size, in pixels, of the specified text when drawn with the specified font and render flags.
The Size, in pixels, of the text.
You can manipulate how the text is measured using the flags parameter to pass a combination of TextRenderFlags values. The GetTextRenderFlags method provides a convenient means of obtaining the default set of flags to measure text using a ControlRenderer.
If font, graphics or text is a null reference (Nothing in Visual Basic), the return value is Size.Empty.
MeasureText uses the TextRenderFlags.StandardDrawing flag to determine whether to use GDI or Graphics.DrawString to measure the text.
ControlRenderer Class | Skybound.Rebar.Rendering Namespace | ControlRenderer.MeasureText Overload List