C# Class Evbpc.Framework.Drawing.PointShort

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

Méthodes publiques

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

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Add ( PointShort pt, Size sz ) : PointShort

Offsets a PointShort by the specified Size.

Add ( PointShort pt, SizeByte sz ) : PointShort

Offsets a PointShort by the specified SizeByte.

Add ( PointShort pt, SizeShort sz ) : PointShort

Offsets a PointShort by the specified SizeShort.

Ceiling ( PointF value ) : PointShort

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

Equals ( object obj ) : bool

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

GetHashCode ( ) : int

Gets a hash code for the current PointShort.

GetPackedValue ( ) : uint

Gets a uint that represents the current PointShort.

Offset ( PointShort p ) : PointShort

Offsets the current PointShort by the specified PointShort.

Offset ( short dx, short dy ) : PointShort

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

PointShort ( Size sz ) : System

Constructs a new instance of PointShort from the specified Size.

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

PointShort ( short x, short y ) : System

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

PointShort ( uint packedValue ) : System

Constructs a new instance of PointShort from the specified uint.

Round ( PointF value ) : PointShort

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

Subtract ( PointShort pt, Size sz ) : PointShort

Subtracts a PointShort by a Size.

Subtract ( PointShort pt, SizeByte sz ) : PointShort

Subtracts a PointShort by a SizeByte.

Subtract ( PointShort pt, SizeShort sz ) : PointShort

Subtracts a PointShort by a SizeShort.

ToString ( ) : string

Gets a string representation of a PointShort.

Truncate ( PointF value ) : PointShort

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

operator ( ) : PointShort

Offsets a PointShort object by the specified Size.

operator ( ) : bool

Determines if two PointShort objects are equal.

Method Details

Add() public static méthode

Offsets a PointShort by the specified Size.
public static Add ( PointShort pt, Size sz ) : PointShort
pt PointShort The that should be offset.
sz Size The to offset by.
Résultat PointShort

Add() public static méthode

Offsets a PointShort by the specified SizeByte.
public static Add ( PointShort pt, SizeByte sz ) : PointShort
pt PointShort The that should be offset.
sz SizeByte The to offset by.
Résultat PointShort

Add() public static méthode

Offsets a PointShort by the specified SizeShort.
public static Add ( PointShort pt, SizeShort sz ) : PointShort
pt PointShort The that should be offset.
sz SizeShort The to offset by.
Résultat PointShort

Ceiling() public static méthode

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

Equals() public méthode

Determines if the current PointShort is equal to the specified object.
public Equals ( object obj ) : bool
obj object The object to compare to the current .
Résultat bool

GetHashCode() public méthode

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

GetPackedValue() public méthode

Gets a uint that represents the current PointShort.
public GetPackedValue ( ) : uint
Résultat uint

Offset() public méthode

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

Offset() public méthode

Offsets the current PointShort by the specified X and Y values.
public Offset ( short dx, short dy ) : PointShort
dx short The value representing how far to offset the of the current .
dy short The value representing how far to offset the of the current .
Résultat PointShort

PointShort() public méthode

Constructs a new instance of PointShort from the specified Size.
The Size.Width will become the X and the Size.Height will become the Y.
public PointShort ( Size sz ) : System
sz Size The to construct the from.
Résultat System

PointShort() public méthode

Constructs a new instance of PointShort from the specified X and Y.
public PointShort ( short x, short y ) : System
x short The value that should represent the .
y short The value that should represent the .
Résultat System

PointShort() public méthode

Constructs a new instance of PointShort from the specified uint.
public PointShort ( uint packedValue ) : System
packedValue uint The uint representing the current .
Résultat System

Round() public static méthode

Constructs a new PointShort from the specified PointF by rounding all values to the nearest whole number.
public static Round ( PointF value ) : PointShort
value PointF The to be rounded.
Résultat PointShort

Subtract() public static méthode

Subtracts a PointShort by a Size.
public static Subtract ( PointShort pt, Size sz ) : PointShort
pt PointShort The to be subtracted from.
sz Size The to subtract.
Résultat PointShort

Subtract() public static méthode

Subtracts a PointShort by a SizeByte.
public static Subtract ( PointShort pt, SizeByte sz ) : PointShort
pt PointShort The to be subtracted from.
sz SizeByte The to subtract.
Résultat PointShort

Subtract() public static méthode

Subtracts a PointShort by a SizeShort.
public static Subtract ( PointShort pt, SizeShort sz ) : PointShort
pt PointShort The to be subtracted from.
sz SizeShort The to subtract.
Résultat PointShort

ToString() public méthode

Gets a string representation of a PointShort.
public ToString ( ) : string
Résultat string

Truncate() public static méthode

Constructs a new PointShort from the specified PointF by rounding all values down to the nearest whole number.
public static Truncate ( PointF value ) : PointShort
value PointF The to be rounded down.
Résultat PointShort

operator() public static méthode

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

operator() public static méthode

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

Property Details

Empty public_oe static_oe property

Represents a PointShort with default values.
public static PointShort,Evbpc.Framework.Drawing Empty
Résultat PointShort