点击或拖拽改变大小

CssBoxProperties 类

Base class for css box to handle the css properties.
Has field and property for every css property that can be set, the properties add additional parsing like setting the correct border depending what border value was set (single, two , all four).
Has additional fields to control the location and size of the box and 'actual' css values for some properties that require additional calculations and parsing.
继承层次

命名空间:  DSkin.Html.Core.Dom
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public abstract class CssBoxProperties

CssBoxProperties 类型公开以下成员。

构造函数
  名称说明
受保护的方法CssBoxProperties
初始化 CssBoxProperties 类的一个新实例
Top
属性
  名称说明
公共属性ActualBackgroundColor
Gets the actual background color of the box
公共属性ActualBackgroundGradient
Gets the second color that creates a gradient for the background
公共属性ActualBackgroundGradientAngle
Gets the actual angle specified for the background gradient
公共属性ActualBorderBottomColor
Gets the actual Bottom border Color
公共属性ActualBorderBottomWidth
Gets the actual Bottom border width
公共属性ActualBorderLeftColor
Gets the actual Left border Color
公共属性ActualBorderLeftWidth
Gets the actual Left border width
公共属性ActualBorderRightColor
Gets the actual Right border Color
公共属性ActualBorderRightWidth
Gets the actual Right border width
公共属性ActualBorderSpacingHorizontal
Gets the actual horizontal border spacing for tables
公共属性ActualBorderSpacingVertical
Gets the actual vertical border spacing for tables
公共属性ActualBorderTopColor
Gets the actual top border Color
公共属性ActualBorderTopWidth
Gets the actual top border width
公共属性ActualBottom
Gets or sets the bottom of the box. (When setting, alters only the Size.Height of the box)
公共属性ActualColor
获取实际的文本的颜色。
公共属性ActualCornerNe
Gets the actual length of the north east corner
公共属性ActualCornerNw
Gets the actual length of the north west corner
公共属性ActualCornerSe
Gets the actual length of the south east corner
公共属性ActualCornerSw
Gets the actual length of the south west corner
公共属性ActualFont
Gets the font that should be actually used to paint the text of the box
公共属性ActualHeight
Gets the actual height
公共属性ActualLineHeight
Gets the line height
公共属性ActualMarginBottom
Gets the actual Margin of the bottom
公共属性ActualMarginLeft
Gets the actual Margin on the left
公共属性ActualMarginRight
Gets the actual Margin on the right
公共属性ActualMarginTop
Gets the actual top's Margin
公共属性ActualPaddingBottom
Gets the actual Padding of the bottom
公共属性ActualPaddingLeft
Gets the actual padding on the left
公共属性ActualPaddingRight
Gets the actual padding on the right
公共属性ActualPaddingTop
Gets the actual top's padding
公共属性ActualParentFont
Gets the actual font of the parent
公共属性ActualRight
Gets the right of the box. When setting, it will affect only the width of the box.
公共属性ActualTextIndent
Gets the text indentation (on first line only)
公共属性ActualWidth
Gets the actual height
公共属性ActualWordSpacing
Gets the actual width of whitespace between words.
公共属性AvailableWidth
Gets the width available on the box, counting padding and margin.
公共属性BackgroundColor
公共属性BackgroundGradient
公共属性BackgroundGradientAngle
公共属性BackgroundImage
公共属性BackgroundPosition
公共属性BackgroundRepeat
公共属性BorderBottomColor
公共属性BorderBottomStyle
公共属性BorderBottomWidth
公共属性BorderCollapse
公共属性BorderLeftColor
公共属性BorderLeftStyle
公共属性BorderLeftWidth
公共属性BorderRightColor
公共属性BorderRightStyle
公共属性BorderRightWidth
公共属性BorderSpacing
公共属性BorderTopColor
公共属性BorderTopStyle
公共属性BorderTopWidth
公共属性Bounds
Gets the bounds of the box
公共属性ClientBottom
Gets the bottom of the client rectangle
公共属性ClientLeft
Gets the left of the client rectangle (Where content starts rendering)
公共属性ClientRectangle
Gets the client rectangle
公共属性ClientRight
Gets the right of the client rectangle
公共属性ClientTop
Gets the top of the client rectangle (Where content starts rendering)
公共属性CollapsedMarginTop
The margin top value if was effected by margin collapse.
公共属性Color
公共属性CornerNeRadius
公共属性CornerNwRadius
公共属性CornerRadius
公共属性CornerSeRadius
公共属性CornerSwRadius
公共属性Direction
公共属性Display
公共属性EmptyCells
公共属性Float
公共属性FontFamily
公共属性FontSize
公共属性FontStyle
公共属性FontVariant
公共属性FontWeight
公共属性Height
公共属性IsRounded
Gets a value indicating if at least one of the corners of the box is rounded
公共属性Left
公共属性LineHeight
公共属性ListStyle
公共属性ListStyleImage
公共属性ListStylePosition
公共属性ListStyleType
公共属性Location
Gets or sets the location of the box
公共属性MarginBottom
公共属性MarginLeft
公共属性MarginRight
公共属性MarginTop
公共属性MaxWidth
公共属性Overflow
公共属性PaddingBottom
公共属性PaddingLeft
公共属性PaddingRight
公共属性PaddingTop
公共属性Position
公共属性Size
Gets or sets the size of the box
公共属性TextAlign
公共属性TextDecoration
公共属性TextIndent
公共属性Top
公共属性VerticalAlign
公共属性Visibility
公共属性WhiteSpace
公共属性Width
公共属性WordBreak
公共属性WordSpacing
Top
方法
  名称说明
受保护的方法GetActualColor
受保护的方法GetCachedFont
公共方法GetEmHeight
Gets the height of the font in the specified units
受保护的方法GetParent
Get the parent of this css properties instance.
受保护的方法InheritStyle
Inherits inheritable values from specified box.从指定的框继承可继承的值。
受保护的方法MeasureWordSpacing
Measures the width of whitespace between words (set ActualWordSpacing).
受保护的方法NoEms
Ensures that the specified length is converted to pixels if necessary
受保护的方法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.
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
参见