C# Class AGENT.Contrib.Drawing.Size

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

Public Methods

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

public CenterWithin ( Rectangle container ) : Point
container Rectangle
return Point

Clone() public method

public Clone ( ) : Object
return Object

Equals() public method

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

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

Size() public method

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

Size() public method

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

ToString() public method

public ToString ( ) : string
return string