Struct SizeF

SizeF structure

Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.

public struct SizeF

Constructors

NameDescription
SizeF(#=zWfgi6R$WbIywKCegIXZ99gI=)
SizeF(SizeF)Initializes a new instance of the SizeF structure from the specified existing SizeF structure.
SizeF(float, float)Initializes a new instance of the SizeF structure from the specified dimensions.

Properties

NameDescription
Height { get; set; }Gets or sets the vertical component of this SizeF structure.
IsEmpty { get; }Gets a value that indicates whether this SizeF structure has zero width and height.
Width { get; set; }Gets or sets the horizontal component of this SizeF structure.

Methods

NameDescription
Clone()Clones this Aspose.Page.Drawing.SizeF.
override Equals(object)Tests to see whether the specified object is a SizeF structure with the same dimensions as this SizeF structure.
override GetHashCode()Returns a hash code for this Size structure.
override ToString()Creates a human-readable string that represents this SizeF structure.
operator ==Tests whether two SizeF structures are equal.
operator !=Tests whether two SizeF structures are different.

Fields

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

See Also