点击或拖拽改变大小

RContextMenu 类

Adapter for platform specific context menu - used to create and show context menu at specific location.
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 RContextMenu

RContextMenu 类型公开以下成员。

构造函数
  名称说明
受保护的方法RContextMenu
初始化 RContextMenu 类的一个新实例
Top
属性
  名称说明
公共属性ItemsCount
The total number of items in the context menu
Top
方法
  名称说明
公共方法AddDivider
Add divider item to the context menu.
The divider is a non clickable place holder used to separate items.
公共方法AddItem
Add item to the context menu with the given text that will raise the given event when clicked.
公共方法Dispose
释放被 RContextMenu 使用的所有资源
公共方法RemoveLastDivider
Remove the last item from the context menu iff it is a divider
公共方法Show
Show the context menu in the given parent control at the given location.
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
参见