C# Class Evbpc.Framework.Drawing.PointShort

Mostrar archivo Open project: EBrown8534/Framework Class Usage Examples

Public Properties

Property Type Description
Empty PointShort

Private Properties

Property Type Description

Public Methods

Method 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 method

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

Add() public static method

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

Add() public static method

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

Ceiling() public static method

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

Equals() public method

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

GetHashCode() public method

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

GetPackedValue() public method

Gets a uint that represents the current PointShort.
public GetPackedValue ( ) : uint
return uint

Offset() public method

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

Offset() public method

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

PointShort() public method

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

PointShort() public method

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

PointShort() public method

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

Round() public static method

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

Subtract() public static method

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

Subtract() public static method

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

Subtract() public static method

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

ToString() public method

Gets a string representation of a PointShort.
public ToString ( ) : string
return string

Truncate() public static method

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

operator() public static method

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

operator() public static method

Determines if two PointShort objects are equal.
public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

Represents a PointShort with default values.
public static PointShort,Evbpc.Framework.Drawing Empty
return PointShort