CssBox 方法 |
CssBox 类型公开以下成员。
名称 | 说明 | |
---|---|---|
CreateBlock |
Create new css block box.
| |
CreateBlock(CssBox, HtmlTag, CssBox) |
Create new css block box for the given parent with the given optional html tag and insert it either
at the end or before the given optional box. If no html tag is given the box will be anonymous. If no before box is given the new box will be added at the end of parent boxes collection. If before box doesn't exists in parent box exception is thrown. | |
CreateBox(HtmlTag, CssBox) |
Create new css box for the given parent with the given html tag. | |
CreateBox(CssBox, HtmlTag, CssBox) |
Create new css box for the given parent with the given optional html tag and insert it either
at the end or before the given optional box. If no html tag is given the box will be anonymous. If no before box is given the new box will be added at the end of parent boxes collection. If before box doesn't exists in parent box exception is thrown. | |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
GetActualColor | (重写 CssBoxPropertiesGetActualColor(String).) | |
GetAttribute(String) |
获取指定的属性,则返回的s属性值字符串。如果没有指定的属性,则返回空字符串
| |
GetAttribute(String, String) |
获取 HTML 标记源的指定属性的值。
| |
GetCachedFont | (重写 CssBoxPropertiesGetCachedFont(String, Double, RFontStyle).) | |
GetEmHeight |
Gets the height of the font in the specified units
(继承自 CssBoxProperties。) | |
GetEnumerator | ||
GetParent |
Get the parent of this css properties instance.
(重写 CssBoxPropertiesGetParent.) | |
GetSelectionBackBrush |
Get brush for selection background depending if it has external and if alpha is required for images.
| |
GetSelectionForeBrush |
Get brush for the text depending if there is selected text color set.
| |
InheritStyle |
Inherits inheritable values from specified box.从指定的框继承可继承的值。
(继承自 CssBoxProperties。) | |
MarginTopCollapse |
Gets the result of collapsing the vertical margins of the two boxes
| |
MeasureWordSpacing |
Measures the width of whitespace between words (set ActualWordSpacing).
(继承自 CssBoxProperties。) | |
NoEms |
Ensures that the specified length is converted to pixels if necessary
(继承自 CssBoxProperties。) | |
OnMouseDoubleClick | ||
OnMouseDown | ||
OnMouseEnter | ||
OnMouseLeave | ||
OnMouseMove | ||
OnMouseUp | ||
Paint |
Paints the fragment
| |
PaintBackground |
Paints the background of the box
| |
PaintDecoration |
Paints the text decoration (underline/strike-through/over-line)
| |
PaintImp |
Paints the fragment
| |
ParseToWords |
Splits the text into words and saves the result 将文本拆分为词并保存结果
| |
PerformLayout |
Measures the bounds of box and children, recursively. Performs layout of the DOM structure creating lines by set bounds restrictions. | |
PerformLayoutImp |
Measures the bounds of box and children, recursively. Performs layout of the DOM structure creating lines by set bounds restrictions. | |
Query |
查询DOM元素
| |
SetAllBorders |
Set the style/width/color for all 4 borders on the box. (继承自 CssBoxProperties。)if null is given for a value it will not be set. | |
SetAllBoxes |
Move all child boxes from fromBox to this box.
| |
SetBeforeBox |
Set this box in
| |
SetInlineStyle |
设置内联样式 比如 color: red;
| |
ToString |
ToString override.
(重写 ObjectToString.) |
名称 | 说明 | |
---|---|---|
FormatDateTime |
将数据以时间格式并对其格式化
(由 ObjectExtenstions 定义。) | |
FormatNumber |
将数据以数值方式对数据格式化
(由 ObjectExtenstions 定义。) | |
FormatString |
将数据以字符串格式对数据格式化
(由 ObjectExtenstions 定义。) | |
Sleep |
异步延迟执行代码,只能在主线程中调用
(由 DuiControlExtensions 定义。) | |
ToBool |
将数据转换成Bool,如果转换失败返回False
(由 ObjectExtenstions 定义。) | |
ToDateTime |
将数据转换成DateTime,如果转换失败返回空的时间
(由 ObjectExtenstions 定义。) | |
ToDouble |
将数据转换成Double,如果转换失败返回0
(由 ObjectExtenstions 定义。) | |
ToEnumT |
将数据转换成枚举,如果转换失败则返回默认值
(由 ObjectExtenstions 定义。) | |
ToFloat |
将数据转换成Float,如果转换失败返回0
(由 ObjectExtenstions 定义。) | |
ToInt | 已重载。
将数据转换成int,如果转换失败返回0
(由 ObjectExtenstions 定义。) | |
ToInt(Int32) | 已重载。
数据转换成int,如果转换失败,返回errorResult
(由 ObjectExtenstions 定义。) | |
ToJson |
将对象序列化成Json字符串
(由 JsonHelper 定义。) | |
ToLong |
将数据转换成Long,如果转换失败返回0
(由 ObjectExtenstions 定义。) |