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

Stores an ordered pair of integers, which specify Height and Width
파일 보기 프로젝트 열기: nothingmn/AGENT.Contrib 1 사용 예제들

공개 메소드들

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

Specifies whether this System.Drawing.Size structure has the same dimensions as the specified System.Drawing.Size structure.

Equals ( object obj ) : bool

Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.

GetHashCode ( ) : int
Size ( Point pt ) : System

Initializes a new instance of the System.Drawing.Size structure from the specified System.Drawing.Point structure.

Size ( int width, int height ) : System

Initializes a new instance of the System.Drawing.Size structure from the specified dimensions.

ToString ( ) : string

메소드 상세

CenterWithin() 공개 메소드

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

Clone() 공개 메소드

public Clone ( ) : Object
리턴 Object

Equals() 공개 메소드

Specifies whether this System.Drawing.Size structure has the same dimensions as the specified System.Drawing.Size structure.
public Equals ( Size other ) : bool
other Size
리턴 bool

Equals() 공개 메소드

Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.
public Equals ( object obj ) : bool
obj object The Object to test
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Size() 공개 메소드

Initializes a new instance of the System.Drawing.Size structure from the specified System.Drawing.Point structure.
public Size ( Point pt ) : System
pt Point The System.Drawing.Point structure from which to initialize this Size structure.
리턴 System

Size() 공개 메소드

Initializes a new instance of the System.Drawing.Size structure from the specified dimensions.
public Size ( int width, int height ) : System
width int the width component of the new Size.
height int the height component of the new Size.
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string