点击或拖拽改变大小

CssRect 类

Represents a word inside an inline box 表示内联框内的单词
继承层次
SystemObject
  DSkin.Html.Core.DomCssRect

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

CssRect 类型公开以下成员。

构造函数
  名称说明
受保护的方法CssRect
Init.
Top
属性
  名称说明
公共属性ActualWordSpacing
Gets the actual width of whitespace between words.
公共属性Bottom
Gets or sets the bottom of the rectangle. When setting, it only affects the Height of the rectangle.
公共属性FullWidth
Get the full width of the word including the spacing.
公共属性HasSpaceAfter
was there a whitespace after the word chars (before trim)
公共属性HasSpaceBefore
was there a whitespace before the word chars (before trim)
公共属性Height
Height of the rectangle
公共属性Image
Gets the image this words represents (if one exists)
公共属性IsImage
Gets if the word represents an image.
公共属性IsLineBreak
Gets if the word is composed by only a line break
公共属性IsSpaces
Gets a bool indicating if this word is composed only by spaces. Spaces include tabs and line breaks 获取一个布尔值,该值指示是否这个词仅由空格组成。空间包括制表符和换行符
公共属性Left
Left of the rectangle
公共属性OwnerBox
Gets the Box where this word belongs.
公共属性Rectangle
Gets or sets the bounds of the rectangle
公共属性Right
Gets or sets the right of the rectangle. When setting, it only affects the Width of the rectangle.
公共属性Selected
is the word is currently selected
公共属性SelectedEndIndexOffset
the selection end index if the word is partially selected (-1 if not selected or fully selected)
公共属性SelectedEndOffset
the selection end offset if the word is partially selected (-1 if not selected or fully selected)
公共属性SelectedStartIndex
the selection start index if the word is partially selected (-1 if not selected or fully selected)
公共属性SelectedStartOffset
the selection start offset if the word is partially selected (-1 if not selected or fully selected)
公共属性Selection
If the word is selected this points to the selection handler for more data
公共属性Text
Gets the text of the word
公共属性Top
Top of the rectangle
公共属性Width
Width of the rectangle
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
备注
Because of performance, words of text are the most atomic element in the project. It should be characters, but come on, imagine the performance when drawing char by char on the device.
It may change for future versions of the library. 由于性能,单词是文本的最原子在项目中的元素。它应该是个字符,但是拜托,想象的性能,在设备上绘制的字符时。
它可能会改变为未来版本的库。
参见