C# Class Evbpc.Framework.Drawing.Point

ファイルを表示 Open project: EBrown8534/Framework Class Usage Examples

Public Properties

Property Type Description
Empty Point

Private Properties

Property Type Description

Public Methods

Method Description
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.

Method Details

Add() public static method

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.
return Point

Ceiling() public static method

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.
return Point

Equals() public method

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 .
return bool

FromBytes() public method

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

GetBytes() public method

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

GetHashCode() public method

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

Offset() public method

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

Offset() public method

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 .
return Point

Point() public method

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.
return Evbpc.Framework.Utilities.Serialization

Point() public method

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 .
return Evbpc.Framework.Utilities.Serialization

Round() public static method

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.
return Point

Subtract() public static method

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.
return Point

ToString() public method

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

Truncate() public static method

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.
return Point

operator() public static method

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

operator() public static method

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

Property Details

Empty public_oe static_oe property

Represents a Point with default values.
public static Point Empty
return Point