xtd 0.2.0
Loading...
Searching...
No Matches

◆ trim_string()

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.

Parameters
textxtd::string to measure.
fontxtd::drawing::font that defines the text format of the string.
widthSpecifies the maximum width for the text.
trimmingOne of xtd::drawing::string_trimming values.