C# Class System.Drawing.Size

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty Size
Empty System.Drawing.Size

Méthodes publiques

Méthode 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 méthode

Performs vector addition of two objects.

public static Add ( Size sz1, Size sz2 ) : Size
sz1 Size
sz2 Size
Résultat Size

Add() public static méthode

public static Add ( System sz1, System sz2 ) : System.Drawing.Size
sz1 System
sz2 System
Résultat System.Drawing.Size

Ceiling() public static méthode

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

Ceiling() public static méthode

public static Ceiling ( System value ) : System.Drawing.Size
value System
Résultat System.Drawing.Size

Equals() public méthode

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

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

Returns a hash code.

public GetHashCode ( ) : int
Résultat int

Round() public static méthode

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

Round() public static méthode

public static Round ( System value ) : System.Drawing.Size
value System
Résultat System.Drawing.Size

Size() public méthode

public Size ( System pt )
pt System

Size() public méthode

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

Size() public méthode

Initializes a new instance of the class from the specified .

public Size ( Point pt ) : System.Numerics.Hashing
pt Point
Résultat System.Numerics.Hashing

Size() public méthode

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

Subtract() public static méthode

Contracts a by another .

public static Subtract ( Size sz1, Size sz2 ) : Size
sz1 Size
sz2 Size
Résultat Size

Subtract() public static méthode

public static Subtract ( System sz1, System sz2 ) : System.Drawing.Size
sz1 System
sz2 System
Résultat System.Drawing.Size

ToString() public méthode

Creates a human-readable string that represents this .

public ToString ( ) : string
Résultat string

Truncate() public static méthode

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

Truncate() public static méthode

public static Truncate ( System value ) : System.Drawing.Size
value System
Résultat System.Drawing.Size

operator() public static méthode

Performs vector addition of two objects.

public static operator ( ) : Size
Résultat Size

operator() public static méthode

public static operator ( ) : System.Drawing.Size
Résultat System.Drawing.Size

operator() public static méthode

Tests whether two objects are identical.
public static operator ( ) : bool
Résultat bool

Property Details

Empty public_oe static_oe property

Initializes a new instance of the class.
public static Size,System.Drawing Empty
Résultat Size

Empty public_oe static_oe property

public static System.Drawing.Size Empty
Résultat System.Drawing.Size