C# 클래스 Evbpc.Framework.Drawing.Size

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

공개 프로퍼티들

프로퍼티 타입 설명
Empty Size

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Add ( Size sz1, Size sz2 ) : Size

Adds two Size structures together and returns the result.

Ceiling ( SizeF value ) : Size

Constructs a new Size structure from the specified SizeF by rounding values up to the nearest whole number.

Equals ( object obj ) : bool

Determines if the current Size is equal to the specified object.

GetHashCode ( ) : int

Gets a hash code for the current Size.

Round ( SizeF value ) : Size

Constructs a new Size from the specified SizeF by rounding all values to the nearest whole number.

Size ( Point pt ) : System

Constructs a new instance of Size from the specified Point.

The Point.X will become the Width and the Point.Y will be the Height.

Size ( int width, int height ) : System

Constructs a new instance of Size from the specified Width and Height.

Subtract ( Size sz1, Size sz2 ) : Size

Subtracts a Size by another Size.

ToString ( ) : string

Gets a string representation of the current Size.

Truncate ( SizeF value ) : Size

Constructs a new Size from the specified SizeF by rounding all values down to the nearest whole number.

operator ( ) : Size

Adds two Size structures together and returns the result.

operator ( ) : bool

Determines if two Size structures are equal.

메소드 상세

Add() 공개 정적인 메소드

Adds two Size structures together and returns the result.
public static Add ( Size sz1, Size sz2 ) : Size
sz1 Size The first to add.
sz2 Size The second to add.
리턴 Size

Ceiling() 공개 정적인 메소드

Constructs a new Size structure from the specified SizeF by rounding values up to the nearest whole number.
public static Ceiling ( SizeF value ) : Size
value SizeF The to be rounded up.
리턴 Size

Equals() 공개 메소드

Determines if the current Size is equal to the specified object.
public Equals ( object obj ) : bool
obj object The object to compare to the current .
리턴 bool

GetHashCode() 공개 메소드

Gets a hash code for the current Size.
public GetHashCode ( ) : int
리턴 int

Round() 공개 정적인 메소드

Constructs a new Size from the specified SizeF by rounding all values to the nearest whole number.
public static Round ( SizeF value ) : Size
value SizeF The to be rounded.
리턴 Size

Size() 공개 메소드

Constructs a new instance of Size from the specified Point.
The Point.X will become the Width and the Point.Y will be the Height.
public Size ( Point pt ) : System
pt Point The to construct the from.
리턴 System

Size() 공개 메소드

Constructs a new instance of Size from the specified Width and Height.
public Size ( int width, int height ) : System
width int The value that should represent the .
height int The value that should represent the .
리턴 System

Subtract() 공개 정적인 메소드

Subtracts a Size by another Size.
public static Subtract ( Size sz1, Size sz2 ) : Size
sz1 Size The to be subtracted from.
sz2 Size The to subtract.
리턴 Size

ToString() 공개 메소드

Gets a string representation of the current Size.
public ToString ( ) : string
리턴 string

Truncate() 공개 정적인 메소드

Constructs a new Size from the specified SizeF by rounding all values down to the nearest whole number.
public static Truncate ( SizeF value ) : Size
value SizeF The to be rounded down.
리턴 Size

operator() 공개 정적인 메소드

Adds two Size structures together and returns the result.
public static operator ( ) : Size
리턴 Size

operator() 공개 정적인 메소드

Determines if two Size structures are equal.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

Represents a Size with default values.
public static Size,Evbpc.Framework.Drawing Empty
리턴 Size