[]
Measure string for this document.
public static Size MeasureString(string text, Font font, double width, StringFormat sf)
Type | Name | Description |
---|---|---|
string | text | The drawing string. |
Font | font | The drawing font. |
double | width | The drawing width or -1 for default. |
StringFormat | sf | The drawing string format. |
Type | Description |
---|---|
Size | The size, in points, of the string specified as drawn with the font parameter. |
Measure string for the RTF document.
public static Size MeasureString(string text, Font font, double width)
Type | Name | Description |
---|---|---|
string | text | The drawing string. |
Font | font | The drawing font. |
double | width | The drawing width or -1 for default. |
Type | Description |
---|---|
Size | The size, in points, of the string specified as drawn with the font parameter. |
Measure string for this document.
public static Size MeasureString(string text, Font font)
Type | Name | Description |
---|---|---|
string | text | The drawing string. |
Font | font | The drawing font. |
Type | Description |
---|---|
Size | The size, in points, of the string specified as drawn with the font parameter. |