点击或拖拽改变大小

RAdapter 方法

RAdapter 类型公开以下成员。

方法
  名称说明
公共方法AddFontFamily
Adds a font family to be used.
公共方法AddFontFamilyMapping
Adds a font mapping from fromFamily to toFamily iff the fromFamily is not found.
When the fromFamily font is used in rendered html and is not found in existing fonts (installed or added) it will be replaced by toFamily.
公共方法ConvertImage
Convert image object returned from HtmlImageLoadEventArgs to RImage.
受保护的方法ConvertImageInt
Convert image object returned from HtmlImageLoadEventArgs to RImage.
受保护的方法CreateContextMenuInt
Create a context menu that can be used on the control
受保护的方法CreateFontInt(String, Double, RFontStyle)
Get font instance by given font family name, size and style.
受保护的方法CreateFontInt(RFontFamily, Double, RFontStyle)
Get font instance by given font family instance, size and style.
Used to support custom fonts that require explicit font family instance to be created.
受保护的方法CreateLinearGradientBrush
Get linear gradient color brush from color1 to color2.
受保护的方法CreatePen
Get cached pen instance for the given color.
受保护的方法CreateSolidBrush
Get cached solid brush instance for the given color.
公共方法GetClipboardDataObject
Get data object for the given html and plain text data.
The data object can be used for clipboard or drag-drop operation.
Not relevant for platforms that don't render HTML on UI element.
受保护的方法GetClipboardDataObjectInt
Get data object for the given html and plain text data.
The data object can be used for clipboard or drag-drop operation.
公共方法GetColor
Resolve color value from given color name.
受保护的方法GetColorInt
Resolve color value from given color name.
公共方法GetContextMenu
Create a context menu that can be used on the control
Not relevant for platforms that don't render HTML on UI element.
公共方法GetFont
Get font instance by given font family name, size and style.
公共方法GetLinearGradientBrush
Get linear gradient color brush from color1 to color2.
公共方法GetLoadingFailedImage
Get image to be used if HTML image load failed.
公共方法GetLoadingImage
Get image to be used while HTML image is loading.
公共方法GetPen
Get cached pen instance for the given color.
公共方法GetSolidBrush
Get cached solid brush instance for the given color.
公共方法ImageFromStream
Create an RImage object from the given stream.
受保护的方法ImageFromStreamInt
Create an RImage object from the given stream.
公共方法IsFontExists
Check if the given font exists in the system by font family name.
公共方法SaveToFile
Save the given image to file by showing save dialog to the client.
Not relevant for platforms that don't render HTML on UI element.
受保护的方法SaveToFileInt
Save the given image to file by showing save dialog to the client.
公共方法SetToClipboard(String)
Set the given text to the clipboard
Not relevant for platforms that don't render HTML on UI element.
公共方法SetToClipboard(RImage)
Set the given image to clipboard.
Not relevant for platforms that don't render HTML on UI element.
公共方法SetToClipboard(String, String)
Set the given html and plain text data to clipboard.
Not relevant for platforms that don't render HTML on UI element.
受保护的方法SetToClipboardInt(String)
Set the given text to the clipboard
受保护的方法SetToClipboardInt(RImage)
Set the given image to clipboard.
受保护的方法SetToClipboardInt(String, String)
Set the given html and plain text data to clipboard.
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
参见