This documentation is archived and is not being maintained.

Size Members

Size overview

Public Constructors

public constructorSize Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the Size class from the specified Point.

Public Fields

public fieldstatic (Shared in Visual Basic)Empty

Supported by the .NET Compact Framework.

Initializes a new instance of the Size class.

Public Properties

public propertyHeight

Supported by the .NET Compact Framework.

Gets or sets the vertical component of this Size.
public propertyIsEmpty

Supported by the .NET Compact Framework.

Tests whether this Size has zero width and height.
public propertyWidth

Supported by the .NET Compact Framework.

Gets or sets the horizontal component of this Size.

Public Methods

public methodstatic (Shared in Visual Basic)Ceiling Converts the specified SizeF structure to a Size structure by rounding the values of the Size structure to the next higher integer values.
public methodEquals

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Overridden. Returns a hash code for this Size structure.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)Round Converts the specified SizeF structure to a Size structure by rounding the values of the Size structure to the nearest integer values.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Creates a human-readable string that represents this Size.
public methodstatic (Shared in Visual Basic)Truncate Converts the specified SizeF structure to a Size structure by truncating the values of the Size structure to the next lower integer values.

Public Operators and Type Conversions

public operatorstatic (Shared in Visual Basic)Addition Operator Adds the width and height of one Size structure to the width and height of another Size structure.
public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Tests whether two Size structures are equal.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Tests whether two Size structures are different.
public operatorstatic (Shared in Visual Basic)Subtraction Operator Subtracts the width and height of one Size structure from the width and height of another Size structure.
public operatorstatic (Shared in Visual Basic)Size to Point Conversion Converts the specified Size to a Point.
public operatorstatic (Shared in Visual Basic)Size to SizeF Conversion Converts the specified Size to a SizeF.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Size Structure | System.Drawing Namespace

Show: