点击或拖拽改变大小

Rect 方法

Rect 类型公开以下成员。

方法
  名称说明
公共方法Contains(Point)
Contains - Returns true if the Point is within the rectangle, inclusive of the edges. Returns false otherwise.
公共方法Contains(Rect)
Contains - Returns true if the Rect non-Empty and is entirely contained within the rectangle, inclusive of the edges. Returns false otherwise
公共方法Contains(Single, Single)
Contains - Returns true if the Point represented by x,y is within the rectangle inclusive of the edges. Returns false otherwise.
公共方法Equals(Object)
Equals - compares this Rect with the passed in object. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
(重写 ValueTypeEquals(Object).)
公共方法Equals(Rect)
Equals - compares this Rect with the passed in object. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
公共方法静态成员Equals(Rect, Rect)
Compares two Rect instances for object equality. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
公共方法GetHashCode
Returns the HashCode for this Rect
(重写 ValueTypeGetHashCode.)
公共方法GetType (继承自 Object。)
公共方法Inflate(Size)
Inflate - inflate the bounds by the size provided, in all directions If this is Empty, this method is illegal.
公共方法Inflate(Single, Single)
Inflate - inflate the bounds by the size provided, in all directions. If -width is > Width / 2 or -height is > Height / 2, this Rect becomes Empty If this is Empty, this method is illegal.
公共方法静态成员Inflate(Rect, Size)
Inflate - return the result of inflating rect by the size provided, in all directions If this is Empty, this method is illegal.
公共方法静态成员Inflate(Rect, Single, Single)
Inflate - return the result of inflating rect by the size provided, in all directions If this is Empty, this method is illegal.
公共方法Intersect(Rect)
Intersect - Update this rectangle to be the intersection of this and rect If either this or rect are Empty, the result is Empty as well. 更新为交集
公共方法静态成员Intersect(Rect, Rect)
Intersect - Return the result of the intersection of rect1 and rect2. If either this or rect are Empty, the result is Empty as well.
公共方法IntersectsWith
IntersectsWith - Returns true if the Rect intersects with this rectangle Returns false otherwise. Note that if one edge is coincident, this is considered an intersection.
公共方法Offset(Vector)
Offset - translate the Location by the offset provided. If this is Empty, this method is illegal.
公共方法Offset(Single, Single)
Offset - translate the Location by the offset provided If this is Empty, this method is illegal.
公共方法静态成员Offset(Rect, Vector)
Offset - return the result of offsetting rect by the offset provided If this is Empty, this method is illegal.
公共方法静态成员Offset(Rect, Single, Single)
Offset - return the result of offsetting rect by the offset provided If this is Empty, this method is illegal.
公共方法Scale
Scale the rectangle in the X and Y directions
公共方法ToString
Creates a string representation of this object based on the current culture.
(重写 ValueTypeToString.)
公共方法ToString(IFormatProvider)
Creates a string representation of this object based on the IFormatProvider passed in. If the provider is null, the CurrentCulture is used.
公共方法Transform(Matrix)
Updates rectangle to be the bounds of the original value transformed by the matrix. The Empty Rect is not affected by this call.
公共方法静态成员Transform(Rect, Matrix)
Returns the bounds of the transformed rectangle. The Empty Rect is not affected by this call.
公共方法Union(Point)
Union - Update this rectangle to be the union of this and point.
公共方法Union(Rect)
Union - Update this rectangle to be the union of this and rect.
公共方法静态成员Union(Rect, Point)
Union - Return the result of the union of rect and point.
公共方法静态成员Union(Rect, Rect)
Union - Return the result of the union of rect1 and rect2.
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法ToSKRect (由 Extension 定义。)
Top
参见