HtmlRendererUtilsLayout 方法 |
Perform the layout of the html container by given size restrictions returning the final size.
The layout can be effected by the HTML content in the htmlContainer if autoSize or
autoSizeHeightOnly is set to true.
Handle minimum and maximum size restrictions.
Handle auto size and auto size for height only. if autoSize is true autoSizeHeightOnly
is ignored.
命名空间:
DSkin.Html.Core
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public static RSize Layout(
RGraphics g,
HtmlContainerInt htmlContainer,
RSize size,
RSize minSize,
RSize maxSize,
bool autoSize,
bool autoSizeHeightOnly
)
参数
- g
- 类型:DSkin.Html.AdaptersRGraphics
the graphics used for layout - htmlContainer
- 类型:DSkin.Html.CoreHtmlContainerInt
the html container to layout - size
- 类型:DSkin.Html.Adapters.EntitiesRSize
the current size - minSize
- 类型:DSkin.Html.Adapters.EntitiesRSize
the min size restriction - can be empty for no restriction - maxSize
- 类型:DSkin.Html.Adapters.EntitiesRSize
the max size restriction - can be empty for no restriction - autoSize
- 类型:SystemBoolean
if to modify the size (width and height) by html content layout - autoSizeHeightOnly
- 类型:SystemBoolean
if to modify the height by html content layout
返回值
类型:
RSize[缺少 "M:DSkin.Html.Core.HtmlRendererUtils.Layout(DSkin.Html.Adapters.RGraphics,DSkin.Html.Core.HtmlContainerInt,DSkin.Html.Adapters.Entities.RSize,DSkin.Html.Adapters.Entities.RSize,DSkin.Html.Adapters.Entities.RSize,System.Boolean,System.Boolean)" 的 <returns> 文档]
参见