点击或拖拽改变大小

PixelRect 属性

PixelRect 类型公开以下成员。

属性
  名称说明
公共属性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
参见