点击或拖拽改变大小

PixelRect 结构

[缺少 "T:CPF.PixelRect" 的 <summary> 文档]

命名空间:  CPF
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public struct PixelRect : IFormattable

PixelRect 类型公开以下成员。

构造函数
  名称说明
公共方法PixelRect
Constructor which sets the initial values to the values of the parameters. Width and Height must be non-negative
Top
属性
  名称说明
公共属性Bottom
Bottom Property - This is a read-only alias for Y + Height If this is the empty rectangle, the value will be negative infinity.
公共属性BottomLeft
BottomLeft Property - This is a read-only alias for the Point which is at X, Y + Height If this is the empty rectangle, the value will be positive infinity, negative infinity.
公共属性BottomRight
BottomRight Property - This is a read-only alias for the Point which is at X + Width, Y + Height If this is the empty rectangle, the value will be negative infinity, negative infinity.
公共属性Center
Gets the center point of the rectangle.
公共属性静态成员Empty
Empty - a static property which provides an Empty rectangle. X and Y are positive-infinity and Width and Height are negative infinity. This is the only situation where Width or Height can be negative.
公共属性Height
Height - The Height component of the Size. This cannot be set to negative, and will only be negative if this is the empty rectangle, in which case it will be negative infinity. If this rect is Empty, setting this property is illegal.
公共属性IsEmpty
公共属性Left
Left Property - This is a read-only alias for X If this is the empty rectangle, the value will be positive infinity.
公共属性Location
Location - The Point representing the origin of the Rectangle
公共属性Right
Right Property - This is a read-only alias for X + Width If this is the empty rectangle, the value will be negative infinity.
公共属性Size
Size - The Size representing the area of the Rectangle
公共属性Top
Top Property - This is a read-only alias for Y If this is the empty rectangle, the value will be positive infinity.
公共属性TopLeft
TopLeft Property - This is a read-only alias for the Point which is at X, Y If this is the empty rectangle, the value will be positive infinity, positive infinity.
公共属性TopRight
TopRight Property - This is a read-only alias for the Point which is at X + Width, Y If this is the empty rectangle, the value will be negative infinity, positive infinity.
公共属性Width
Width - The Width component of the Size. This cannot be set to negative, and will only be negative if this is the empty rectangle, in which case it will be negative infinity. If this rect is Empty, setting this property is illegal.
公共属性X
X - The X coordinate of the Location. If this is the empty rectangle, the value will be positive infinity. If this rect is Empty, setting this property is illegal.
公共属性Y
Y - The Y coordinate of the Location If this is the empty rectangle, the value will be positive infinity. If this rect is Empty, setting this property is illegal.
Top
方法
  名称说明
公共方法Contains(PixelPoint)
Contains - Returns true if the Point is within the rectangle, inclusive of the edges. Returns false otherwise.
公共方法Contains(PixelRect)
Contains - Returns true if the PixelRect non-Empty and is entirely contained within the rectangle, inclusive of the edges. Returns false otherwise
公共方法Contains(Int32, Int32)
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 PixelRect with the passed in object. In this equality int.NaN is equal to itself, unlike in numeric equality. Note that int values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
(重写 ValueTypeEquals(Object).)
公共方法Equals(PixelRect)
Equals - compares this PixelRect with the passed in object. In this equality int.NaN is equal to itself, unlike in numeric equality. Note that int values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
公共方法静态成员Equals(PixelRect, PixelRect)
Compares two PixelRect instances for object equality. In this equality int.NaN is equal to itself, unlike in numeric equality. Note that int 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 PixelRect
(重写 ValueTypeGetHashCode.)
公共方法GetType (继承自 Object。)
公共方法Inflate(PixelSize)
Inflate - inflate the bounds by the size provided, in all directions If this is Empty, this method is illegal.
公共方法Inflate(Int32, Int32)
Inflate - inflate the bounds by the size provided, in all directions. If -width is > Width / 2 or -height is > Height / 2, this PixelRect becomes Empty If this is Empty, this method is illegal.
公共方法静态成员Inflate(PixelRect, PixelSize)
Inflate - return the result of inflating rect by the size provided, in all directions If this is Empty, this method is illegal.
公共方法静态成员Inflate(PixelRect, Int32, Int32)
Inflate - return the result of inflating rect by the size provided, in all directions If this is Empty, this method is illegal.
公共方法Intersect(PixelRect)
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(PixelRect, PixelRect)
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 PixelRect intersects with this rectangle Returns false otherwise. Note that if one edge is coincident, this is considered an intersection.
公共方法Offset(Int32, Int32)
Offset - translate the Location by the offset provided If this is Empty, this method is illegal.
公共方法静态成员Offset(PixelRect, Int32, Int32)
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.
公共方法Union(PixelRect)
Union - Update this rectangle to be the union of this and rect.
公共方法静态成员Union(PixelRect, PixelRect)
Union - Return the result of the union of rect1 and rect2.
Top
运算符
  名称说明
公共运算符静态成员Equality
公共运算符静态成员(String to PixelRect)
公共运算符静态成员Inequality
Compares two PixelRect instances for exact inequality. Note that int values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. Furthermore, using this equality operator, int.NaN is not equal to itself.
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
Top
参见