点击或拖拽改变大小

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.
if null is given for a value it will not be set.
(继承自 CssBoxProperties。)
公共方法SetAllBoxes
Move all child boxes from fromBox to this box.
公共方法SetBeforeBox
Set this box in
公共方法SetInlineStyle
设置内联样式 比如 color: red;
公共方法ToString
ToString override.
(重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法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 定义。)
Top
参见