点击或拖拽改变大小

HtmlRendererUtilsMeasureHtmlByRestrictions 方法

Measure the size of the html by performing layout under the given restrictions.

命名空间:  DSkin.Html.Core
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public static RSize MeasureHtmlByRestrictions(
	RGraphics g,
	HtmlContainerInt htmlContainer,
	RSize minSize,
	RSize maxSize
)

参数

g
类型:DSkin.Html.AdaptersRGraphics
the graphics to use
htmlContainer
类型:DSkin.Html.CoreHtmlContainerInt
the html to calculate the layout for
minSize
类型:DSkin.Html.Adapters.EntitiesRSize
the minimal size of the rendered html (zero - not limit the width/height)
maxSize
类型:DSkin.Html.Adapters.EntitiesRSize
the maximum size of the rendered html, if not zero and html cannot be layout within the limit it will be clipped (zero - not limit the width/height)

返回值

类型:RSize
return: the size of the html to be rendered within the min/max limits
参见