size_f xtd::drawing::graphics::measure_string | ( | const xtd::string & | text, |
const xtd::drawing::font & | font, | ||
const xtd::drawing::point_f & | origin, | ||
const xtd::drawing::string_format & | format | ||
) |
Measures the specified string when drawn with the specified xtd::drawing::font and formatted with the specified xtd::drawing::string_format.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
origin | xtd::drawing::point_f structure that represents the upper-left corner of the string. |
format | xtd::drawing::string_format that represents formatting information, such as line spacing, for the string. |