C# Class Evbpc.Framework.Drawing.Point

Afficher le fichier Open project: EBrown8534/Framework Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty Point

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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.
Résultat Point

Ceiling() public static méthode

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.
Résultat Point

Equals() public méthode

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 .
Résultat bool

FromBytes() public méthode

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

GetBytes() public méthode

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

GetHashCode() public méthode

Gets a hash code for the current Point.
public GetHashCode ( ) : int
Résultat int

Offset() public méthode

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

Offset() public méthode

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 .
Résultat Point

Point() public méthode

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.
Résultat Evbpc.Framework.Utilities.Serialization

Point() public méthode

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 .
Résultat Evbpc.Framework.Utilities.Serialization

Round() public static méthode

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.
Résultat Point

Subtract() public static méthode

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.
Résultat Point

ToString() public méthode

Gets a string representation of the current Point.
public ToString ( ) : string
Résultat string

Truncate() public static méthode

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.
Résultat Point

operator() public static méthode

Offsets a Point object by the specified Size.
public static operator ( ) : Point
Résultat Point

operator() public static méthode

Determines if two Point structures are equal.
public static operator ( ) : bool
Résultat bool

Property Details

Empty public_oe static_oe property

Represents a Point with default values.
public static Point Empty
Résultat Point