Returns the size and location of the specified string when drawn with the font of the current visual style element.
- dc
The System.Drawing.IDeviceContext this operation will use.
- textToDraw
The string to measure.
- flags
A bitwise combination of the System.Windows.Forms.TextFormatFlags values.
![]()
A System.Drawing.Rectangle that contains the area required to fit the rendered text.