点击或拖拽改变大小

RControl 类

Adapter for platform specific control object - used to handle updating the control that the html is rendered on.
Not relevant for platforms that don't render HTML on UI element.
继承层次

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

RControl 类型公开以下成员。

构造函数
  名称说明
受保护的方法RControl
Init control with platform adapter.
Top
属性
  名称说明
公共属性Adapter
The platform adapter.
公共属性LeftMouseButton
Is the left mouse button is currently in pressed state
公共属性MouseLocation
Get the current location of the mouse relative to the control
公共属性RightMouseButton
Is the right mouse button is currently in pressed state
Top
方法
  名称说明
公共方法DoDragDropCopy
Do drag-drop copy operation for the given data object.
公共方法Invalidate
Invalidates the entire surface of the control and causes the control to be redrawn.
公共方法MeasureString
Measure the width of string under max width restriction calculating the number of characters that can fit and the width those characters take.
公共方法SetCursorDefault
Set the cursor over the control to default cursor
公共方法SetCursorHand
Set the cursor over the control to hand cursor
公共方法SetCursorIBeam
Set the cursor over the control to I beam cursor
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
参见