RRect 结构 |
命名空间: DSkin.Html.Adapters.Entities
public struct RRect
RRect 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| RRect(RPoint, RSize) |
Initializes a new instance of the RRect class with the specified location and size.
| |
| RRect(Double, Double, Double, Double) |
Initializes a new instance of the RRect class with the specified location and size.
|
| 名称 | 说明 | |
|---|---|---|
| Bottom | ||
| Height |
Gets or sets the height of this RRect structure.
| |
| IsEmpty | ||
| Left |
Gets the x-coordinate of the left edge of this RRect structure.
| |
| Location |
Gets or sets the coordinates of the upper-left corner of this RRect structure.
| |
| Right | ||
| Size |
Gets or sets the size of this RRect.
| |
| Top |
Gets the y-coordinate of the top edge of this RRect structure.
| |
| Width |
Gets or sets the width of this RRect structure.
| |
| X |
Gets or sets the x-coordinate of the upper-left corner of this RRect structure.
| |
| Y |
Gets or sets the y-coordinate of the upper-left corner of this RRect structure.
|
| 名称 | 说明 | |
|---|---|---|
| Contains(RPoint) |
Determines if the specified point is contained within this RRect structure.
| |
| Contains(RRect) |
Determines if the rectangular region represented by rect is entirely contained within this
RRect
structure.
| |
| Contains(Double, Double) |
Determines if the specified point is contained within this RRect structure.
| |
| Equals |
Tests whether obj is a RRect with the same location and size of this
RRect.
(重写 ValueTypeEquals(Object).) | |
| FromLTRB |
Creates a RRect structure with upper-left corner and lower-right corner at the specified locations.
| |
| GetHashCode |
Gets the hash code for this RRect structure. For information about the use of hash codes, see Object.GetHashCode.
(重写 ValueTypeGetHashCode.) | |
| Inflate(RSize) |
Inflates this RRect by the specified amount.
| |
| Inflate(Double, Double) |
Inflates this RRect structure by the specified amount.
| |
| Inflate(RRect, Double, Double) |
Creates and returns an inflated copy of the specified RRect structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
| |
| Intersect(RRect) |
Replaces this RRect structure with the intersection of itself and the specified
RRect
structure.
| |
| Intersect(RRect, RRect) |
Returns a RRect structure that represents the intersection of two rectangles. If there is no intersection, and empty
RRect
is returned.
| |
| IntersectsWith |
Determines if this rectangle intersects with rect.
| |
| Offset(RPoint) |
Adjusts the location of this rectangle by the specified amount.
| |
| Offset(Double, Double) |
Adjusts the location of this rectangle by the specified amount.
| |
| ToString |
Converts the Location and Size of this RRect to a human-readable string.
(重写 ValueTypeToString.) | |
| Union |
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
|
| 名称 | 说明 | |
|---|---|---|
| Equality |
Tests whether two RRect structures have equal location and size.
| |
| Inequality |
Tests whether two RRect structures differ in location or size.
|
| 名称 | 说明 | |
|---|---|---|
| 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 定义。) |