Measure the width of string under max width restriction calculating the number of characters that can fit and the width those characters take.
命名空间:
DSkin.Html.Adapters
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public abstract void MeasureString(
string str,
RFont font,
double maxWidth,
out int charFit,
out double charFitWidth
)
参数
- str
- 类型:SystemString
the string to measure - font
- 类型:DSkin.Html.AdaptersRFont
the font to measure string with - maxWidth
- 类型:SystemDouble
the max width to calculate fit characters - charFit
- 类型:SystemInt32
the number of characters that will fit under [!:maxWidth] restriction - charFitWidth
- 类型:SystemDouble
the width that only the characters that fit into max width take
参见