C# Class Evbpc.Framework.Drawing.SizeF

Mostrar archivo Open project: EBrown8534/Framework Class Usage Examples

Public Properties

Property Type Description
Empty SizeF

Private Properties

Property Type Description

Public Methods

Method Description
Add ( SizeF sz1, SizeF sz2 ) : SizeF

Adds two SizeF structures together and returns the result.

Equals ( object obj ) : bool

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

GetHashCode ( ) : int

Gets a hash code for the current SizeF.

SizeF ( PointF pt ) : System

Constructs a new instance of SizeF from the specified PointF.

The PointF.X will become the Width and the PointF.Y will be the Height.

SizeF ( float width, float height ) : System

Constructs a new instance of SizeF from the specified Width and Height.

Subtract ( SizeF sz1, SizeF sz2 ) : SizeF

Subtracts a SizeF by another SizeF.

ToString ( ) : string

Gets a string representation of the current SizeF.

operator ( ) : SizeF

Adds two SizeF structures together and returns the result.

operator ( ) : bool

Determines if two SizeF structures are equal.

Method Details

Add() public static method

Adds two SizeF structures together and returns the result.
public static Add ( SizeF sz1, SizeF sz2 ) : SizeF
sz1 SizeF The first to add.
sz2 SizeF The second to add.
return SizeF

Equals() public method

Determines if the current SizeF 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 SizeF.
public GetHashCode ( ) : int
return int

SizeF() public method

Constructs a new instance of SizeF from the specified PointF.
The PointF.X will become the Width and the PointF.Y will be the Height.
public SizeF ( PointF pt ) : System
pt PointF The to construct the from.
return System

SizeF() public method

Constructs a new instance of SizeF from the specified Width and Height.
public SizeF ( float width, float height ) : System
width float The value that should represent the .
height float The value that should represent the .
return System

Subtract() public static method

Subtracts a SizeF by another SizeF.
public static Subtract ( SizeF sz1, SizeF sz2 ) : SizeF
sz1 SizeF The to be subtracted from.
sz2 SizeF The to subtract.
return SizeF

ToString() public method

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

operator() public static method

Adds two SizeF structures together and returns the result.
public static operator ( ) : SizeF
return SizeF

operator() public static method

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

Property Details

Empty public_oe static_oe property

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