Parameters
- text
- String to measure.
- font
- System.Drawing.Font object that defines the appearance and size of the text.
- width
- Maximum width of the string.
Return Value
The size of the string expressed in points.
This method is similar to MeasureString(String,Font,Single), except it recognizes Rtf (Rich Text Format) strings like those used in the System.Windows.Forms.RichTextBox control.
For details, see the DrawStringRtf(String,Font,Brush,RectangleF) method.