Size

Overview

Size is a struct in Aspose.Psd FOSS for .NET. Inherits from: IEquatable<Size>.

Represents an ordered pair of integer width and height values that defines a size.

This struct declares 5 methods for Size objects in .NET programs. Available methods include: Equals, GetHashCode, Size, ToString. Public members are accessible to any .NET application after installing the Aspose.Psd FOSS for .NET package. Properties: Empty, Height, IsEmpty, Width.

Properties

NameTypeAccessDescription
WidthintRead/WriteGets or sets the width component of this Size.
HeightintRead/WriteGets or sets the height component of this Size.
IsEmptyboolReadGets a value indicating whether this Size has width and height left uninitialized.
EmptySizeReadRepresents a Size with width and height left uninitialized.

Methods

SignatureDescription
Size(width: int, height: int)Initializes a new instance of the Size structure with the specified dimensions.
Equals(other: Size)Determines whether the specified size is equal to this size.
Equals(obj: object?)Determines whether the specified object is equal to this size.
GetHashCode()Returns a hash code for this size.
ToString()Returns a compact size representation.

See Also