C# 클래스 AGENT.Contrib.Drawing.Rectangle

Stores a set of four integers that represent the location and size of a rectangle
파일 보기 프로젝트 열기: nothingmn/AGENT.Contrib 1 사용 예제들

공개 메소드들

메소드 설명
CenterWithin ( Rectangle container ) : Point
Clone ( ) : Object
Equals ( Rectangle other ) : bool

Tests whether the System.Drawing.Rectangle structure has the same location and size of this System.Drawing.Rectangle structure.

Equals ( object obj ) : bool

Tests whether obj is a System.Drawing.Rectangle structure with the same location and size of this System.Drawing.Rectangle structure.

GetHashCode ( ) : int
Inflate ( Size size ) : void

Enlarges this System.Drawing.Rectangle by the specified amount.

Inflate ( int width, int height ) : void

Enlarges this System.Drawing.Rectangle by the specified amount.

Offset ( Point pos ) : void

Adjusts the location of this rectangle by the specified amount.

Offset ( int x, int y ) : void

Adjusts the location of this rectangle by the specified amount.

Rectangle ( Point location, Size size ) : System

Initializes a new instance of the System.Drawing.Rectangle class with the specified location and size.

Rectangle ( int x, int y, int width, int height ) : System

Initializes a new instance of the System.Drawing.Rectangle class with the specified location and size.

ToString ( ) : string

메소드 상세

CenterWithin() 공개 메소드

public CenterWithin ( Rectangle container ) : Point
container Rectangle
리턴 Point

Clone() 공개 메소드

public Clone ( ) : Object
리턴 Object

Equals() 공개 메소드

Tests whether the System.Drawing.Rectangle structure has the same location and size of this System.Drawing.Rectangle structure.
public Equals ( Rectangle other ) : bool
other Rectangle
리턴 bool

Equals() 공개 메소드

Tests whether obj is a System.Drawing.Rectangle structure with the same location and size of this System.Drawing.Rectangle structure.
public Equals ( object obj ) : bool
obj object The System.Object to test
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Inflate() 공개 메소드

Enlarges this System.Drawing.Rectangle by the specified amount.
public Inflate ( Size size ) : void
size Size The amount to inflate this System.Drawing.Rectangle
리턴 void

Inflate() 공개 메소드

Enlarges this System.Drawing.Rectangle by the specified amount.
public Inflate ( int width, int height ) : void
width int The amount to inflate this System.Drawing.Rectangle horizontally.
height int The amount to inflate this System.Drawing.Rectangle vertically.
리턴 void

Offset() 공개 메소드

Adjusts the location of this rectangle by the specified amount.
public Offset ( Point pos ) : void
pos Point Amount to offset the location.
리턴 void

Offset() 공개 메소드

Adjusts the location of this rectangle by the specified amount.
public Offset ( int x, int y ) : void
x int The horizontal offset.
y int The vertical offset.
리턴 void

Rectangle() 공개 메소드

Initializes a new instance of the System.Drawing.Rectangle class with the specified location and size.
public Rectangle ( Point location, Size size ) : System
location Point A System.Drawing.Point that represents the upper-left corner of the rectangular region.
size Size A System.Drawing.Size that represents the width and height of the rectangular region.
리턴 System

Rectangle() 공개 메소드

Initializes a new instance of the System.Drawing.Rectangle class with the specified location and size.
public Rectangle ( int x, int y, int width, int height ) : System
x int The x-coordinate of the upper-left corner of the rectangle.
y int The y-coordinate of the upper-left corner of the rectangle.
width int The width of the rectangle.
height int The height of the rectangle.
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string