C# Class StdPaint.Rectangle

Mostra file Open project: TheBerkin/StdPaint Class Usage Examples

Public Properties

Property Type Description
Bottom int
Left int
Right int
Top int

Public Methods

Method Description
Contains ( Point point ) : bool

Returns whether the specified point is contained within the bounds of the rectangle.

Rectangle ( int l, int r, int t, int b ) : System

Initializes a new rectangle with the specified coordinates.

ToString ( ) : string

Returns a string representation of this Rectangle object.

Method Details

Contains() public method

Returns whether the specified point is contained within the bounds of the rectangle.
public Contains ( Point point ) : bool
point Point The point to test.
return bool

Rectangle() public method

Initializes a new rectangle with the specified coordinates.
public Rectangle ( int l, int r, int t, int b ) : System
l int The left bound.
r int The right bound.
t int The top bound.
b int The bottom bound.
return System

ToString() public method

Returns a string representation of this Rectangle object.
public ToString ( ) : string
return string

Property Details

Bottom public_oe property

The bottom bound.
public int Bottom
return int

Left public_oe property

The left bound.
public int Left
return int

Right public_oe property

The right bound.
public int Right
return int

Top public_oe property

The top bound.
public int Top
return int