Version

Rect Structure Members

The following tables list the members exposed by Rect.

Public Constructors
 NameDescription
Public ConstructorRect ConstructorOverloaded.   
Public Properties
 NameDescription
Public PropertyBottomThe bottom of the rectangle (read-only)  
Public Propertystatic (Shared in Visual Basic)EmptyReturns an empty rect  
Public PropertyHeightGets/sets the height of the Rectangle  
Public PropertyIsEmptyReturns whether the rect is empty (read-only)  
Public PropertyLeftThe left edge of the rectangle (read-only)  
Public PropertyRightThe right edge of the rectangle (read-only)  
Public PropertyTopThe top of the rectangle (read-only)  
Public PropertyWidthGets/sets the width of the Rectangle  
Public PropertyXGets/sets the left edge of the Rectangle  
Public PropertyYGets/sets the top edge of the Rectangle  
Public Methods
 NameDescription
Public MethodContainsOverloaded. Determines if this rect contains a point  
Public MethodEqualsDetermines if the object is equal to this obect  
Public MethodGetHashCodeReturns a hash code  
Public MethodInflateInflates this rect  
Public MethodIntersectModifies this rect to be the intersection of itself with the passed in rect  
Public MethodIntersectsWithDetermines if this rect intersects with the passed in rect.  
Public MethodToStringReturns a string containing the X, Y, Width and Height values  
Public MethodUnionModifies this rect to the the union of itself and the passed in rect  
Public Operators
public Operator Equality == operator
public Operator Inequality != operator
See Also