Returns the size and location of the specified string when drawn with the font of the current visual style element within the specified initial bounding rectangle.
- dc
- The System.Drawing.IDeviceContext this operation will use.
- bounds
- A System.Drawing.Rectangle used to control the flow and wrapping of the text.
- 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.