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

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

공개 프로퍼티들

프로퍼티 타입 설명
Empty Point

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Add ( Point pt, Size sz ) : Point

Offsets a Point by the specified Size.

Ceiling ( PointF value ) : Point

Constructs a new Point from the specified PointF by rounding all float values up to the nearest whole number.

Equals ( object obj ) : bool

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

FromBytes ( byte data ) : void

Constructs this Point from a byte array.

GetBytes ( ) : byte[]

Converts the current Point to a byte array.

GetHashCode ( ) : int

Gets a hash code for the current Point.

Offset ( Point p ) : Point

Offsets the current Point by the specified Point.

Offset ( int dx, int dy ) : Point

Offsets the current Point by the specified X and Y values.

Point ( Size sz ) : Evbpc.Framework.Utilities.Serialization

Constructs a new instance of Point from the specified Size.

The Size.Width will become the X and the Size.Height will become the Y.

Point ( int x, int y ) : Evbpc.Framework.Utilities.Serialization

Constructs a new instance of Point from the specified X and Y.

Round ( PointF value ) : Point

Constructs a new Point from the specified PointF by rounding all values to the nearest whole number.

Subtract ( Point pt, Size sz ) : Point

Subtracts a Point by a Size.

ToString ( ) : string

Gets a string representation of the current Point.

Truncate ( PointF value ) : Point

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

operator ( ) : Point

Offsets a Point object by the specified Size.

operator ( ) : bool

Determines if two Point structures are equal.

메소드 상세

Add() 공개 정적인 메소드

Offsets a Point by the specified Size.
public static Add ( Point pt, Size sz ) : Point
pt Point The that should be offset.
sz Size The to offset by.
리턴 Point

Ceiling() 공개 정적인 메소드

Constructs a new Point from the specified PointF by rounding all float values up to the nearest whole number.
public static Ceiling ( PointF value ) : Point
value PointF The to be rounded up.
리턴 Point

Equals() 공개 메소드

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

FromBytes() 공개 메소드

Constructs this Point from a byte array.
public FromBytes ( byte data ) : void
data byte The byte array to construct the from.
리턴 void

GetBytes() 공개 메소드

Converts the current Point to a byte array.
public GetBytes ( ) : byte[]
리턴 byte[]

GetHashCode() 공개 메소드

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

Offset() 공개 메소드

Offsets the current Point by the specified Point.
public Offset ( Point p ) : Point
p Point The to offest this by.
리턴 Point

Offset() 공개 메소드

Offsets the current Point by the specified X and Y values.
public Offset ( int dx, int dy ) : Point
dx int The value representing how far to offset the of the current .
dy int The value representing how far to offset the of the current .
리턴 Point

Point() 공개 메소드

Constructs a new instance of Point from the specified Size.
The Size.Width will become the X and the Size.Height will become the Y.
public Point ( Size sz ) : Evbpc.Framework.Utilities.Serialization
sz Size The to construct the from.
리턴 Evbpc.Framework.Utilities.Serialization

Point() 공개 메소드

Constructs a new instance of Point from the specified X and Y.
public Point ( int x, int y ) : Evbpc.Framework.Utilities.Serialization
x int The value that should represent the .
y int The value that should represent the .
리턴 Evbpc.Framework.Utilities.Serialization

Round() 공개 정적인 메소드

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

Subtract() 공개 정적인 메소드

Subtracts a Point by a Size.
public static Subtract ( Point pt, Size sz ) : Point
pt Point The to be subtracted from.
sz Size The to subtract.
리턴 Point

ToString() 공개 메소드

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

Truncate() 공개 정적인 메소드

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

operator() 공개 정적인 메소드

Offsets a Point object by the specified Size.
public static operator ( ) : Point
리턴 Point

operator() 공개 정적인 메소드

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

프로퍼티 상세

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

Represents a Point with default values.
public static Point Empty
리턴 Point