[]
Measures an RTF string when drawn with a given Font object into a rectangle with the specified width.
public SizeF MeasureStringRtf(string text, Font font, float width)
Type | Name | Description |
---|---|---|
string | text | String to measure. |
Font | font | Font object that defines the appearance and size of the text. |
float | width | Maximum width of the string. |
Type | Description |
---|---|
SizeF | The size of the string expressed in points. |
This method is similar to MeasureString(string, Font, float), except it recognizes Rtf (Rich Text Format) strings like those used in the RichTextBox control.
For details, see the DrawStringRtf(string, Font, Brush, RectangleF) method.
Measures an RTF string when drawn with a given Font object.
public SizeF MeasureStringRtf(string text, Font font)
Type | Name | Description |
---|---|---|
string | text | String to measure. |
Font | font | Font object that defines the appearance and size of the text. |
Type | Description |
---|---|
SizeF | The size of the string expressed in points. |