Click or drag to resize
Rect Structure
Describes the width, height, and point origin of a rectangle.

Namespace: Windows.Foundation
Assembly: CSharpXamlForHtml5 (in CSharpXamlForHtml5.dll) Version: 1.0.0.0
Syntax
C#
public struct Rect

The Rect type exposes the following members.

Constructors
  NameDescription
Public methodRect(Point, Point)
Initializes a Windows.Foundation.Rect structure that is exactly large enough to contain the two specified points.
Public methodRect(Point, Size)
Initializes a Windows.Foundation.Rect structure based on an origin and size.
Public methodRect(Double, Double, Double, Double)
Initializes a Windows.Foundation.Rect structure that has the specified x-coordinate, y-coordinate, width, and height.
Top
Methods
  NameDescription
Public methodContains
Indicates whether the rectangle described by the Windows.Foundation.Rect contains the specified point.
Public methodEquals(Object)
Indicates whether the specified object is equal to the current Windows.Foundation.Rect.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Rect)
Indicates whether the specified Windows.Foundation.Rect is equal to the current Windows.Foundation.Rect.
Public methodGetHashCode
Creates a hash code for the Windows.Foundation.Rect.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string representation of the Windows.Foundation.Rect structure.
(Overrides ValueTypeToString.)
Public methodUnion(Point)
Expands the rectangle represented by the current Windows.Foundation.Rect exactly enough to contain the specified point.
Public methodUnion(Rect)
Expands the rectangle represented by the current Windows.Foundation.Rect exactly enough to contain the specified rectangle.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two Windows.Foundation.Rect structures for equality.
Public operatorStatic memberInequality
Compares two Windows.Foundation.Rect structures for inequality.
Top
Properties
  NameDescription
Public propertyBottom
Gets the y-axis value of the bottom of the rectangle.
Public propertyStatic memberEmpty
Gets a special value that represents a rectangle with no position or area.
Public propertyHeight
Gets or sets the height of the rectangle.
Public propertyIsEmpty
Gets a value that indicates whether the rectangle is the Windows.Foundation.Rect.Empty rectangle.
Public propertyLeft
Gets the x-axis value of the left side of the rectangle.
Public propertyRight
Gets the x-axis value of the right side of the rectangle.
Public propertyTop
Gets the y-axis position of the top of the rectangle.
Public propertyWidth
Gets or sets the width of the rectangle.
Public propertyX
Gets or sets the x-axis value of the left side of the rectangle.
Public propertyY
Gets or sets the y-axis value of the top side of the rectangle.
Top
See Also