Property | Type | Description | |
---|---|---|---|
Empty |
Method | Description | |
---|---|---|
Contains ( Point pt ) : bool |
Contains Method Checks if a Point lies within this Rectangle. |
|
Contains ( |
Contains Method Checks if a Rectangle lies entirely within this Rectangle. |
|
Contains ( int x, int y ) : bool |
Contains Method Checks if an x,y coordinate lies within this Rectangle. |
|
Equals ( object obj ) : bool |
Equals Method Checks equivalence of this Rectangle and another object. |
|
FromLTRB ( int left, int top, int right, int bottom ) : |
FromLTRB Shared Method Produces a Rectangle structure from left, top, right, and bottom coordinates. |
|
GetHashCode ( ) : int |
GetHashCode Method Calculates a hashing value. |
|
Inflate ( |
Inflate Shared Method Produces a new Rectangle by inflating an existing Rectangle by the specified coordinate values. |
|
Inflate ( |
Inflate Method Inflates the Rectangle by a specified Size. |
|
Inflate ( int width, int height ) : void |
Inflate Method Inflates the Rectangle by a specified width and height. |
|
Intersect ( |
Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection. |
|
Intersect ( |
Intersect Method Replaces the Rectangle with the intersection of itself and another Rectangle. |
|
IntersectsWith ( |
IntersectsWith Method Checks if a Rectangle intersects with this one. |
|
Offset ( Point pos ) : void |
Offset Method Moves the Rectangle a specified distance. |
|
Offset ( int x, int y ) : void |
Offset Method Moves the Rectangle a specified distance. |
|
Rectangle ( Point location, |
Rectangle Constructor Creates a Rectangle from Point and Size values. |
|
Rectangle ( int x, int y, int width, int height ) : System |
Rectangle Constructor Creates a Rectangle from a specified x,y location and width and height values. |
|
ToString ( ) : string |
ToString Method Formats the Rectangle as a string in (x,y,w,h) notation. |
|
Union ( |
Union Shared Method Produces a new Rectangle from the union of 2 existing Rectangles. |
|
operator ( ) : bool |
Equality Operator Compares two Rectangle objects. The return value is based on the equivalence of the Location and Size properties of the two Rectangles. |
Method | Description | |
---|---|---|
IntersectsWithInclusive ( |
public static FromLTRB ( int left, int top, int right, int bottom ) : |
||
left | int | |
top | int | |
right | int | |
bottom | int | |
return |
public static Inflate ( |
||
rect | ||
x | int | |
y | int | |
return |
public Inflate ( int width, int height ) : void | ||
width | int | |
height | int | |
return | void |
public static Intersect ( |
||
a | ||
b | ||
return |
public IntersectsWith ( |
||
rect | ||
return | bool |
public Rectangle ( Point location, |
||
location | Point | |
size | ||
return | System |
public Rectangle ( int x, int y, int width, int height ) : System | ||
x | int | |
y | int | |
width | int | |
height | int | |
return | System |
public static Union ( |
||
a | ||
b | ||
return |