C# Class System.Drawing.Size

Show file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
Empty Size
Empty System.Drawing.Size

Public Methods

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

Performs vector addition of two objects.

Add ( System sz1, System sz2 ) : System.Drawing.Size
Ceiling ( SizeF value ) : Size

Converts a SizeF to a Size by performing a ceiling operation on all the coordinates.

Ceiling ( System value ) : System.Drawing.Size
Equals ( object obj ) : bool

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

GetHashCode ( ) : int

Returns a hash code.

Round ( SizeF value ) : Size

Converts a SizeF to a Size by performing a round operation on all the coordinates.

Round ( System value ) : System.Drawing.Size
Size ( System pt )
Size ( int width, int height )
Size ( Point pt ) : System.Numerics.Hashing

Initializes a new instance of the class from the specified .

Size ( int width, int height ) : System.Numerics.Hashing

Initializes a new instance of the class from the specified dimensions.

Subtract ( Size sz1, Size sz2 ) : Size

Contracts a by another .

Subtract ( System sz1, System sz2 ) : System.Drawing.Size
ToString ( ) : string

Creates a human-readable string that represents this .

Truncate ( SizeF value ) : Size

Converts a SizeF to a Size by performing a truncate operation on all the coordinates.

Truncate ( System value ) : System.Drawing.Size
operator ( ) : Size

Performs vector addition of two objects.

operator ( ) : System.Drawing.Size
operator ( ) : bool

Tests whether two objects are identical.

Method Details

Add() public static method

Performs vector addition of two objects.

public static Add ( Size sz1, Size sz2 ) : Size
sz1 Size
sz2 Size
return Size

Add() public static method

public static Add ( System sz1, System sz2 ) : System.Drawing.Size
sz1 System
sz2 System
return System.Drawing.Size

Ceiling() public static method

Converts a SizeF to a Size by performing a ceiling operation on all the coordinates.
public static Ceiling ( SizeF value ) : Size
value SizeF
return Size

Ceiling() public static method

public static Ceiling ( System value ) : System.Drawing.Size
value System
return System.Drawing.Size

Equals() public method

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

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

Returns a hash code.

public GetHashCode ( ) : int
return int

Round() public static method

Converts a SizeF to a Size by performing a round operation on all the coordinates.
public static Round ( SizeF value ) : Size
value SizeF
return Size

Round() public static method

public static Round ( System value ) : System.Drawing.Size
value System
return System.Drawing.Size

Size() public method

public Size ( System pt )
pt System

Size() public method

public Size ( int width, int height )
width int
height int

Size() public method

Initializes a new instance of the class from the specified .

public Size ( Point pt ) : System.Numerics.Hashing
pt Point
return System.Numerics.Hashing

Size() public method

Initializes a new instance of the class from the specified dimensions.
public Size ( int width, int height ) : System.Numerics.Hashing
width int
height int
return System.Numerics.Hashing

Subtract() public static method

Contracts a by another .

public static Subtract ( Size sz1, Size sz2 ) : Size
sz1 Size
sz2 Size
return Size

Subtract() public static method

public static Subtract ( System sz1, System sz2 ) : System.Drawing.Size
sz1 System
sz2 System
return System.Drawing.Size

ToString() public method

Creates a human-readable string that represents this .

public ToString ( ) : string
return string

Truncate() public static method

Converts a SizeF to a Size by performing a truncate operation on all the coordinates.
public static Truncate ( SizeF value ) : Size
value SizeF
return Size

Truncate() public static method

public static Truncate ( System value ) : System.Drawing.Size
value System
return System.Drawing.Size

operator() public static method

Performs vector addition of two objects.

public static operator ( ) : Size
return Size

operator() public static method

public static operator ( ) : System.Drawing.Size
return System.Drawing.Size

operator() public static method

Tests whether two objects are identical.
public static operator ( ) : bool
return bool

Property Details

Empty public static property

Initializes a new instance of the class.
public static Size,System.Drawing Empty
return Size

Empty public static property

public static System.Drawing.Size Empty
return System.Drawing.Size