Table of Contents

Struct Size

Namespace
Aspose.CAD
Assembly
Aspose.CAD.dll

Represents size.

public struct Size
Inherited Members

Constructors

Size(Point)

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

Size(int, int)

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

Properties

Empty

Gets a new instance of the Size structure that has Width and Height values set to zero.

Height

Gets or sets the vertical component of this Size.

IsEmpty

Gets a value indicating whether this Size has width and height of 0.

Width

Gets or sets the horizontal component of this Size.

Methods

Add(Size, Size)

Adds the width and height of one Size structure to the width and height of another Size structure.

Ceiling(SizeF)

Converts the specified SizeF structure to a Size structure by rounding the values of the Size structure to the next higher integer values.

Equals(object)

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

GetHashCode()

Returns a hash code for this Size structure.

Round(SizeF)

Converts the specified SizeF structure to a Size structure by rounding the values of the SizeF structure to the nearest integer values.

Subtract(Size, Size)

Subtracts the width and height of one Size structure from the width and height of another Size structure.

ToString()

Creates a human-readable string that represents this Size.

Truncate(SizeF)

Converts the specified SizeF structure to a Size structure by truncating the values of the SizeF structure to the next lower integer values.

Operators

operator +(Size, Size)

Adds the width and height of one Size structure to the width and height of another Size structure.

operator ==(Size, Size)

Tests whether two Size structures are equal.

explicit operator Point(Size)

Converts the specified Size to a Point.

implicit operator SizeF(Size)

Converts the specified Size to a SizeF.

operator !=(Size, Size)

Tests whether two Size structures are different.

operator -(Size, Size)

Subtracts the width and height of one Size structure from the width and height of another Size structure.