C# Class AGENT.Contrib.Drawing.Size

Stores an ordered pair of integers, which specify Height and Width
Afficher le fichier Open project: nothingmn/AGENT.Contrib Class Usage Examples

Méthodes publiques

Méthode Description
CenterWithin ( Rectangle container ) : Point
Clone ( ) : Object
Equals ( Size other ) : bool

Specifies whether this System.Drawing.Size structure has the same dimensions as the specified System.Drawing.Size structure.

Equals ( object obj ) : bool

Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.

GetHashCode ( ) : int
Size ( Point pt ) : System

Initializes a new instance of the System.Drawing.Size structure from the specified System.Drawing.Point structure.

Size ( int width, int height ) : System

Initializes a new instance of the System.Drawing.Size structure from the specified dimensions.

ToString ( ) : string

Method Details

CenterWithin() public méthode

public CenterWithin ( Rectangle container ) : Point
container Rectangle
Résultat Point

Clone() public méthode

public Clone ( ) : Object
Résultat Object

Equals() public méthode

Specifies whether this System.Drawing.Size structure has the same dimensions as the specified System.Drawing.Size structure.
public Equals ( Size other ) : bool
other Size
Résultat bool

Equals() public méthode

Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.
public Equals ( object obj ) : bool
obj object The Object to test
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Size() public méthode

Initializes a new instance of the System.Drawing.Size structure from the specified System.Drawing.Point structure.
public Size ( Point pt ) : System
pt Point The System.Drawing.Point structure from which to initialize this Size structure.
Résultat System

Size() public méthode

Initializes a new instance of the System.Drawing.Size structure from the specified dimensions.
public Size ( int width, int height ) : System
width int the width component of the new Size.
height int the height component of the new Size.
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string