xtd::string xtd::drawing::graphics::trim_string | ( | const xtd::string & | text, |
const xtd::drawing::font & | font, | ||
float | width, | ||
xtd::drawing::string_trimming | trimming | ||
) |
Trims the specified string for a specified width with the specified xtd::drawing::font and with the specified xtd::drawing::string_trimming.
text | xtd::string to measure. |
font | xtd::drawing::font that defines the text format of the string. |
width | Specifies the maximum width for the text. |
trimming | One of xtd::drawing::string_trimming values. |