点击或拖拽改变大小

CssBlock 类

Represents a block of CSS property values.
Contains collection of key-value pairs that are CSS properties for specific css class.
Css class can be either custom or html tag name. 表示的 CSS 属性值块。
包含特定的 css 类的 CSS 属性的键-值对的集合
Css 类可以自定义或 html 标记名称。
继承层次
SystemObject
  DSkin.Html.Core.EntitiesCssBlock

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

CssBlock 类型公开以下成员。

构造函数
  名称说明
公共方法CssBlock
Creates a new block from the block's source
Top
属性
  名称说明
公共属性Class
the name of the css class of the block
公共属性Hover
is the css block has :hover pseudo-class
公共属性Properties
Gets the CSS block properties and its values
公共属性Selectors
additional selectors to used in hierarchy (p className1 > className2)
Top
方法
  名称说明
公共方法Clone
Create deep copy of the CssBlock.
公共方法Equals(Object)
Check if the two css blocks are the same (same class, selectors and properties).
(重写 ObjectEquals(Object).)
公共方法Equals(CssBlock)
Check if the two css blocks are the same (same class, selectors and properties).
公共方法EqualsSelector
Check if the selectors of the css blocks is the same.
公共方法GetHashCode
Serves as a hash function for a particular type.
(重写 ObjectGetHashCode.)
公共方法Merge
Merge the other block properties into this css block.
Other block properties can overwrite this block properties.
公共方法ToString
Returns a String that represents the current Object.
(重写 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
备注
To learn more about CSS blocks visit CSS spec: http://www.w3.org/TR/CSS21/syndata.html#block
参见