- s
The string to add.
- family
A System.Drawing.FontFamily that represents the name of the font with which the test is drawn.
- style
A System.Drawing.FontStyle enumeration that represents style information about the text (bold, italic, and so on). This must be cast as an integer (see the example code later in this section).
- emSize
The height of the em square box that bounds the character.
- layoutRect
A System.Drawing.RectangleF that represents the rectangle that bounds the text.
- format
A System.Drawing.StringFormat that specifies text formatting information, such as line spacing and alignment.