CssBox 类 |
命名空间: DSkin.Html.Core.Dom
public class CssBox : CssBoxProperties, IEnumerable
CssBox 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | ActualBackgroundColor |
Gets the actual background color of the box
(继承自 CssBoxProperties。) |
![]() | ActualBackgroundGradient |
Gets the second color that creates a gradient for the background
(继承自 CssBoxProperties。) |
![]() | ActualBackgroundGradientAngle |
Gets the actual angle specified for the background gradient
(继承自 CssBoxProperties。) |
![]() | ActualBorderBottomColor |
Gets the actual Bottom border Color
(继承自 CssBoxProperties。) |
![]() | ActualBorderBottomWidth |
Gets the actual Bottom border width
(继承自 CssBoxProperties。) |
![]() | ActualBorderLeftColor |
Gets the actual Left border Color
(继承自 CssBoxProperties。) |
![]() | ActualBorderLeftWidth |
Gets the actual Left border width
(继承自 CssBoxProperties。) |
![]() | ActualBorderRightColor |
Gets the actual Right border Color
(继承自 CssBoxProperties。) |
![]() | ActualBorderRightWidth |
Gets the actual Right border width
(继承自 CssBoxProperties。) |
![]() | ActualBorderSpacingHorizontal |
Gets the actual horizontal border spacing for tables
(继承自 CssBoxProperties。) |
![]() | ActualBorderSpacingVertical |
Gets the actual vertical border spacing for tables
(继承自 CssBoxProperties。) |
![]() | ActualBorderTopColor |
Gets the actual top border Color
(继承自 CssBoxProperties。) |
![]() | ActualBorderTopWidth |
Gets the actual top border width
(继承自 CssBoxProperties。) |
![]() | ActualBottom |
Gets or sets the bottom of the box.
(When setting, alters only the Size.Height of the box)
(继承自 CssBoxProperties。) |
![]() | ActualColor |
获取实际的文本的颜色。
(继承自 CssBoxProperties。) |
![]() | ActualCornerNe |
Gets the actual length of the north east corner
(继承自 CssBoxProperties。) |
![]() | ActualCornerNw |
Gets the actual length of the north west corner
(继承自 CssBoxProperties。) |
![]() | ActualCornerSe |
Gets the actual length of the south east corner
(继承自 CssBoxProperties。) |
![]() | ActualCornerSw |
Gets the actual length of the south west corner
(继承自 CssBoxProperties。) |
![]() | ActualFont |
Gets the font that should be actually used to paint the text of the box
(继承自 CssBoxProperties。) |
![]() | ActualHeight |
Gets the actual height
(继承自 CssBoxProperties。) |
![]() | ActualLineHeight |
Gets the line height
(继承自 CssBoxProperties。) |
![]() | ActualMarginBottom |
Gets the actual Margin of the bottom
(继承自 CssBoxProperties。) |
![]() | ActualMarginLeft |
Gets the actual Margin on the left
(继承自 CssBoxProperties。) |
![]() | ActualMarginRight |
Gets the actual Margin on the right
(继承自 CssBoxProperties。) |
![]() | ActualMarginTop |
Gets the actual top's Margin
(继承自 CssBoxProperties。) |
![]() | ActualPaddingBottom |
Gets the actual Padding of the bottom
(继承自 CssBoxProperties。) |
![]() | ActualPaddingLeft |
Gets the actual padding on the left
(继承自 CssBoxProperties。) |
![]() | ActualPaddingRight |
Gets the actual padding on the right
(继承自 CssBoxProperties。) |
![]() | ActualPaddingTop |
Gets the actual top's padding
(继承自 CssBoxProperties。) |
![]() | ActualParentFont |
Gets the actual font of the parent
(继承自 CssBoxProperties。) |
![]() | ActualRight |
Gets the right of the box. When setting, it will affect only the width of the box.
(继承自 CssBoxProperties。) |
![]() | ActualTextIndent |
Gets the text indentation (on first line only)
(继承自 CssBoxProperties。) |
![]() | ActualWidth |
Gets the actual height
(继承自 CssBoxProperties。) |
![]() | ActualWordSpacing |
Gets the actual width of whitespace between words.
(继承自 CssBoxProperties。) |
![]() | AvailableWidth |
Gets the width available on the box, counting padding and margin.
(继承自 CssBoxProperties。) |
![]() | BackgroundColor | (继承自 CssBoxProperties。) |
![]() | BackgroundGradient | (继承自 CssBoxProperties。) |
![]() | BackgroundGradientAngle | (继承自 CssBoxProperties。) |
![]() | BackgroundImage | (继承自 CssBoxProperties。) |
![]() | BackgroundPosition | (继承自 CssBoxProperties。) |
![]() | BackgroundRepeat | (继承自 CssBoxProperties。) |
![]() | BorderBottomColor | (继承自 CssBoxProperties。) |
![]() | BorderBottomStyle | (继承自 CssBoxProperties。) |
![]() | BorderBottomWidth | (继承自 CssBoxProperties。) |
![]() | BorderCollapse | (继承自 CssBoxProperties。) |
![]() | BorderLeftColor | (继承自 CssBoxProperties。) |
![]() | BorderLeftStyle | (继承自 CssBoxProperties。) |
![]() | BorderLeftWidth | (继承自 CssBoxProperties。) |
![]() | BorderRightColor | (继承自 CssBoxProperties。) |
![]() | BorderRightStyle | (继承自 CssBoxProperties。) |
![]() | BorderRightWidth | (继承自 CssBoxProperties。) |
![]() | BorderSpacing | (继承自 CssBoxProperties。) |
![]() | BorderTopColor | (继承自 CssBoxProperties。) |
![]() | BorderTopStyle | (继承自 CssBoxProperties。) |
![]() | BorderTopWidth | (继承自 CssBoxProperties。) |
![]() | Bounds |
Gets the bounds of the box
(继承自 CssBoxProperties。) |
![]() | Boxes |
Gets the children boxes of this box
|
![]() | ClientBottom |
Gets the bottom of the client rectangle
(继承自 CssBoxProperties。) |
![]() | ClientLeft |
Gets the left of the client rectangle (Where content starts rendering)
(继承自 CssBoxProperties。) |
![]() | ClientRectangle |
Gets the client rectangle
(继承自 CssBoxProperties。) |
![]() | ClientRight |
Gets the right of the client rectangle
(继承自 CssBoxProperties。) |
![]() | ClientTop |
Gets the top of the client rectangle (Where content starts rendering)
(继承自 CssBoxProperties。) |
![]() | CollapsedMarginTop |
The margin top value if was effected by margin collapse.
(继承自 CssBoxProperties。) |
![]() | Color | (继承自 CssBoxProperties。) |
![]() | ContainingBlock |
Gets the containing block-box of this box. (The nearest parent box with display=block)
|
![]() | CornerNeRadius | (继承自 CssBoxProperties。) |
![]() | CornerNwRadius | (继承自 CssBoxProperties。) |
![]() | CornerRadius | (继承自 CssBoxProperties。) |
![]() | CornerSeRadius | (继承自 CssBoxProperties。) |
![]() | CornerSwRadius | (继承自 CssBoxProperties。) |
![]() | Direction | (继承自 CssBoxProperties。) |
![]() | Display | (继承自 CssBoxProperties。) |
![]() | EmptyCells | (继承自 CssBoxProperties。) |
![]() | FirstHostingLineBox |
Gets or sets the first linebox where content of this box appear
|
![]() | FirstWord |
Gets the first word of the box
|
![]() | Float | (继承自 CssBoxProperties。) |
![]() | FontFamily | (继承自 CssBoxProperties。) |
![]() | FontSize | (继承自 CssBoxProperties。) |
![]() | FontStyle | (继承自 CssBoxProperties。) |
![]() | FontVariant | (继承自 CssBoxProperties。) |
![]() | FontWeight | (继承自 CssBoxProperties。) |
![]() | Height | (继承自 CssBoxProperties。) |
![]() | HrefLink |
Get the href link of the box (by default get "href" attribute)
|
![]() | HtmlContainer |
Gets the HtmlContainer of the Box.
WARNING: May be null.
|
![]() | HtmlTag |
Gets the HTMLTag that hosts this box
|
![]() | InnerText |
获取内部所有文本
|
![]() | IsBlock |
is the box "Display" is "Block", is this is an block box and not inline.
|
![]() | IsBrElement |
Is the box is of "br" element.
|
![]() | IsClickable |
Is the css box clickable (by default only "a" element is clickable)
|
![]() | IsImage |
Gets if this box represents an image
|
![]() | IsInline |
is the box "Display" is "Inline", is this is an inline box and not block.
|
![]() | IsRounded |
Gets a value indicating if at least one of the corners of the box is rounded
(继承自 CssBoxProperties。) |
![]() | IsSpaceOrEmpty |
Tells if the box is empty or contains just blank spaces
|
![]() | LastHostingLineBox |
Gets or sets the last linebox where content of this box appear
|
![]() | Left | (继承自 CssBoxProperties。) |
![]() | LineBoxes |
Gets the line-boxes of this box (if block box)
|
![]() | LineHeight | (继承自 CssBoxProperties。) |
![]() | ListStyle | (继承自 CssBoxProperties。) |
![]() | ListStyleImage | (继承自 CssBoxProperties。) |
![]() | ListStylePosition | (继承自 CssBoxProperties。) |
![]() | ListStyleType | (继承自 CssBoxProperties。) |
![]() | Location |
Gets or sets the location of the box
(继承自 CssBoxProperties。) |
![]() | MarginBottom | (继承自 CssBoxProperties。) |
![]() | MarginLeft | (继承自 CssBoxProperties。) |
![]() | MarginRight | (继承自 CssBoxProperties。) |
![]() | MarginTop | (继承自 CssBoxProperties。) |
![]() | MaxWidth | (继承自 CssBoxProperties。) |
![]() | Overflow | (继承自 CssBoxProperties。) |
![]() | PaddingBottom | (继承自 CssBoxProperties。) |
![]() | PaddingLeft | (继承自 CssBoxProperties。) |
![]() | PaddingRight | (继承自 CssBoxProperties。) |
![]() | PaddingTop | (继承自 CssBoxProperties。) |
![]() | ParentBox |
Gets or sets the parent box of this box
|
![]() | ParentLineBoxes |
Gets the linebox(es) that contains words of this box (if inline)
|
![]() | Position | (继承自 CssBoxProperties。) |
![]() | Rectangles |
Gets the rectangles where this box should be painted
|
![]() | Size |
Gets or sets the size of the box
(继承自 CssBoxProperties。) |
![]() | TagName |
标签名
|
![]() | Text |
Gets or sets the inner text of the box
|
![]() | TextAlign | (继承自 CssBoxProperties。) |
![]() | TextDecoration | (继承自 CssBoxProperties。) |
![]() | TextIndent | (继承自 CssBoxProperties。) |
![]() | Top | (继承自 CssBoxProperties。) |
![]() | VerticalAlign | (继承自 CssBoxProperties。) |
![]() | Visibility | (继承自 CssBoxProperties。) |
![]() | WhiteSpace | (继承自 CssBoxProperties。) |
![]() | Width | (继承自 CssBoxProperties。) |
![]() | WordBreak | (继承自 CssBoxProperties。) |
![]() | Words |
Gets the BoxWords of text in the box
|
![]() | WordSpacing | (继承自 CssBoxProperties。) |
名称 | 说明 | |
---|---|---|
![]() ![]() | 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.) |
名称 | 说明 | |
---|---|---|
![]() | _htmlContainer |
the root container for the hierarchy
|
![]() | _wordsSizeMeasured |
名称 | 说明 | |
---|---|---|
![]() | 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 定义。) |