点击或拖拽改变大小

RGraphicsMeasureString 方法 (String, RFont, Double, Int32, Double)

Measure the width of string under max width restriction calculating the number of characters that can fit and the width those characters take.
Not relevant for platforms that don't render HTML on UI element.

命名空间:  DSkin.Html.Adapters
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
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
参见