C# Класс StdPaint.Rectangle

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Bottom int
Left int
Right int
Top int

Открытые методы

Метод Описание
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.

Описание методов

Contains() публичный Метод

Returns whether the specified point is contained within the bounds of the rectangle.
public Contains ( Point point ) : bool
point Point The point to test.
Результат bool

Rectangle() публичный Метод

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.
Результат System

ToString() публичный Метод

Returns a string representation of this Rectangle object.
public ToString ( ) : string
Результат string

Описание свойств

Bottom публичное свойство

The bottom bound.
public int Bottom
Результат int

Left публичное свойство

The left bound.
public int Left
Результат int

Right публичное свойство

The right bound.
public int Right
Результат int

Top публичное свойство

The top bound.
public int Top
Результат int