Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Rectangle Structure

Defines a rectangle.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework (in Microsoft.Xna.Framework.dll)
Public Structure Rectangle

The Rectangle type exposes the following members.

Public methodRectangleInitializes a new instance of Rectangle.
Public propertyBottomGets the y-coordinate of the bottom of the rectangle.
Public propertyStatic memberEmptyGets a Rectangle with all of its values set to zero.
Public propertyIsEmptyGets a value that indicates whether the rectangle is empty.
Public propertyLeftGets the x-coordinate of the left side of the rectangle.
Public propertyRightGets the x-coordinate of the right side of the rectangle.
Public propertyTopGets the y-coordinate of the top of the rectangle.
Public methodEquals(Object)Determines whether the specified Object is equal to the Rectangle. (Overrides ValueType.Equals(Object).)
Public methodEquals(Rectangle)Determines whether the current instance is equal to a specified object.
Public methodGetHashCodeGets the hash code for this object. (Overrides ValueType.GetHashCode.)
Public methodToStringRetrieves a string representation of the current object. (Overrides ValueType.ToString.)
Public operatorStatic memberEqualityCompares two rectangles for equality.
Public operatorStatic memberInequalityCompares two rectangles for inequality.
Public fieldHeightSpecifies the x-coordinate of the rectangle.
Public fieldWidthSpecifies the width of the rectangle.
Public fieldXSpecifies the x-coordinate of the rectangle.
Public fieldYSpecifies the y-coordinate of the rectangle.


Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.