Size class

Size class

Stores an ordered pair of integers, typically the width and height of a rectangle.

The Size type exposes the following members:

Constructors

NameDescription
Size(width, height)Initializes a new instance of the Size class
Size()Initializes a new instance of the Size class

Properties

NameDescription
heightGets or sets the vertical component of this Size.
widthGets or sets the horizontal component of this Size.
is_emptyTests whether this Size has width and height of 0.
EMPTYGets a Size structure that has a height and width value of 0.

Methods

NameDescription
clone()Clones this Aspose.Page.Drawing.Size.
equals(obj)Tests to see whether the specified object is a Size with the same dimensions as this Size.
get_hash_code()Returns a hash code for this Size structure.
to_string()Creates a human-readable string that represents this Size.

See Also