C# Class StdPaint.Rectangle

Afficher le fichier Open project: TheBerkin/StdPaint Class Usage Examples

Méthodes publiques

Свойство Type Description
Bottom int
Left int
Right int
Top int

Méthodes publiques

Méthode 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 méthode

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

Rectangle() public méthode

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.
Résultat System

ToString() public méthode

Returns a string representation of this Rectangle object.
public ToString ( ) : string
Résultat string

Property Details

Bottom public_oe property

The bottom bound.
public int Bottom
Résultat int

Left public_oe property

The left bound.
public int Left
Résultat int

Right public_oe property

The right bound.
public int Right
Résultat int

Top public_oe property

The top bound.
public int Top
Résultat int