C# Class Evbpc.Framework.Drawing.Size

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

Méthodes publiques

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

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Add ( Size sz1, Size sz2 ) : Size

Adds two Size structures together and returns the result.

Ceiling ( SizeF value ) : Size

Constructs a new Size structure from the specified SizeF by rounding values up to the nearest whole number.

Equals ( object obj ) : bool

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

GetHashCode ( ) : int

Gets a hash code for the current Size.

Round ( SizeF value ) : Size

Constructs a new Size from the specified SizeF by rounding all values to the nearest whole number.

Size ( Point pt ) : System

Constructs a new instance of Size from the specified Point.

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

Size ( int width, int height ) : System

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

Subtract ( Size sz1, Size sz2 ) : Size

Subtracts a Size by another Size.

ToString ( ) : string

Gets a string representation of the current Size.

Truncate ( SizeF value ) : Size

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

operator ( ) : Size

Adds two Size structures together and returns the result.

operator ( ) : bool

Determines if two Size structures are equal.

Method Details

Add() public static méthode

Adds two Size structures together and returns the result.
public static Add ( Size sz1, Size sz2 ) : Size
sz1 Size The first to add.
sz2 Size The second to add.
Résultat Size

Ceiling() public static méthode

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

Equals() public méthode

Determines if the current Size 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 Size.
public GetHashCode ( ) : int
Résultat int

Round() public static méthode

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

Size() public méthode

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

Size() public méthode

Constructs a new instance of Size from the specified Width and Height.
public Size ( int width, int height ) : System
width int The value that should represent the .
height int The value that should represent the .
Résultat System

Subtract() public static méthode

Subtracts a Size by another Size.
public static Subtract ( Size sz1, Size sz2 ) : Size
sz1 Size The to be subtracted from.
sz2 Size The to subtract.
Résultat Size

ToString() public méthode

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

Truncate() public static méthode

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

operator() public static méthode

Adds two Size structures together and returns the result.
public static operator ( ) : Size
Résultat Size

operator() public static méthode

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

Property Details

Empty public_oe static_oe property

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