点击或拖拽改变大小

SelectionHandler 类

Handler for text selection in the html. 在 html 中选定文本的处理程序。
继承层次
SystemObject
  DSkin.Html.Core.HandlersSelectionHandler

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

SelectionHandler 类型公开以下成员。

构造函数
  名称说明
公共方法SelectionHandler
Init.
Top
方法
  名称说明
公共方法ClearSelection
Clear the current selection.
公共方法CopySelectedHtml
Copy the currently selected html segment to clipboard.
Copy rich html text and plain text.
公共方法Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
公共方法GetSelectedEndIndexOffset
The selection end index if the last selected word is partially selected (-1 if not selected or fully selected)
if the given word is not starting or ending selection word -1 is returned as full word selection is in place.
公共方法GetSelectedEndOffset
The selection end offset if the last selected word is partially selected (-1 if not selected or fully selected)
if the given word is not starting or ending selection word -1 is returned as full word selection is in place.
公共方法GetSelectedHtml
Copy the currently selected html segment with style.
公共方法GetSelectedStartOffset
The selection start offset if the first selected word is partially selected (-1 if not selected or fully selected)
if the given word is not starting or ending selection word -1 is returned as full word selection is in place.
公共方法GetSelectedText
Get the currently selected text segment in the html.
公共方法GetSelectingStartIndex
The selection start index if the first selected word is partially selected (-1 if not selected or fully selected)
if the given word is not starting or ending selection word -1 is returned as full word selection is in place.
公共方法HandleMouseDown
Handle mouse down to handle selection.
公共方法HandleMouseLeave
On mouse leave change the cursor back to default.
公共方法HandleMouseMove
Handle mouse move to handle hover cursor and text selection.
公共方法HandleMouseUp
Handle mouse up to handle selection and link click.
公共方法SelectAll
Select all the words in the html.
公共方法SelectAllWords
Select all the words that are under box DOM hierarchy.
公共方法SelectWord
Select the word at the given location if found.
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
参见