Class Rectangle
Syntax
Properties
Bottom
Declaration
public double Bottom { get; }
Property Value
Type |
Description |
System.Double |
|
Height
The height of the rectangle
Declaration
public double Height { get; }
Property Value
Type |
Description |
System.Double |
|
Left
Declaration
public double Left { get; }
Property Value
Type |
Description |
System.Double |
|
Right
Declaration
public double Right { get; }
Property Value
Type |
Description |
System.Double |
|
Top
Declaration
public double Top { get; }
Property Value
Type |
Description |
System.Double |
|
Width
The width of the rectangle
Declaration
public double Width { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Contains(IReadable2DLocation)
Test if the Rectangle contains the point
Declaration
public bool Contains(IReadable2DLocation location)
Parameters
Returns
Type |
Description |
System.Boolean |
True if the rectangle contains the point, else false
|
Equals(Rectangle)
Declaration
public bool Equals(Rectangle val)
Parameters
Returns
Type |
Description |
System.Boolean |
True if equal otherwise false is returned.
|
Equals(Object)
Tests a System.Object against this current Rectangle for equality.
Declaration
public override bool Equals(object toCompare)
Parameters
Type |
Name |
Description |
System.Object |
toCompare |
|
Returns
Type |
Description |
System.Boolean |
True if object is equal otherwise false is returned.
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Gets the hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
The hash code for this object.
|
Overrides
System.Object.GetHashCode()
Operators
Equality(Rectangle, Rectangle)
Declaration
public static bool operator ==(Rectangle a, Rectangle b)
Parameters
Returns
Type |
Description |
System.Boolean |
True if equal otherwise false is returned.
|
Inequality(Rectangle, Rectangle)
Declaration
public static bool operator !=(Rectangle a, Rectangle b)
Parameters
Returns
Type |
Description |
System.Boolean |
True if not equal otherwise false is returned.
|