C# 클래스 StdPaint.Rectangle

파일 보기 프로젝트 열기: TheBerkin/StdPaint 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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