点击或拖拽改变大小

RRect 结构

Stores a set of four floating-point numbers that represent the location and size of a rectangle.

命名空间:  DSkin.Html.Adapters.Entities
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
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.
Top
属性
  名称说明
公共属性Bottom
Gets the y-coordinate that is the sum of Y and Height of this RRect structure.
公共属性Height
Gets or sets the height of this RRect structure.
公共属性IsEmpty
Tests whether the Width or Height property of this RRect has a value of zero.
公共属性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
Gets the x-coordinate that is the sum of X and Width of this RRect structure.
公共属性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.
Top
方法
  名称说明
公共方法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
运算符
  名称说明
公共运算符静态成员Equality
Tests whether two RRect structures have equal location and size.
公共运算符静态成员Inequality
Tests whether two RRect structures differ in location or size.
Top
字段
  名称说明
公共字段静态成员Empty
Represents an instance of the RRect class with its members uninitialized.
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
参见