Draws text in the specified bounding rectangle with the option of displaying disabled text and applying other text formatting.
- dc
The System.Drawing.IDeviceContext used to draw the text.
- bounds
A System.Drawing.Rectangle in which to draw the text.
- textToDraw
The text to draw.
- drawDisabled
true to draw grayed-out text; otherwise, false.
- flags
A bitwise combination of the System.Windows.Forms.TextFormatFlags values.