Struct Size

Size structure

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

public struct Size

Constructors

NameDescription
Size(int, int)Initializes a new instance of the Size class from the specified dimensions.

Properties

NameDescription
Height { get; set; }Gets or sets the vertical component of this Size.
IsEmpty { get; }Tests whether this Size has width and height of 0.
Width { get; set; }Gets or sets the horizontal component of this Size.

Methods

NameDescription
Clone()Clones this Aspose.Page.Drawing.Size.
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.
ToString()Creates a human-readable string that represents this Size.
operator ==Tests whether two Size structures are equal.
operator !=Tests whether two Size structures are different.

Fields

NameDescription
static readonly EmptyGets a Size structure that has a Height and Width value of 0.

See Also