点击或拖拽改变大小

RRect 方法

RRect 类型公开以下成员。

方法
  名称说明
公共方法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.
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
参见