Table of Contents

Struct SizeF

Namespace
Aspose.CAD
Assembly
Aspose.CAD.dll

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

public struct SizeF
Inherited Members

Constructors

SizeF(PointF)

Initializes a new instance of the SizeF structure from the specified PointF.

SizeF(SizeF)

Initializes a new instance of the SizeF structure from the specified SizeF.

SizeF(float, float)

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

SizeF(float, float, float)

Initializes a new instance of the SizeF struct.

Properties

Depth

Gets or sets the depth.

Empty

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

Height

Gets or sets the vertical component of this SizeF.

IsEmpty

Gets a value indicating whether this SizeF has zero width and height.

Width

Gets or sets the horizontal component of this SizeF.

Methods

Add(SizeF, SizeF)

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

Equals(object)

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

GetHashCode()

Returns a hash code for this Size structure.

Subtract(SizeF, SizeF)

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

ToPointF()

Converts a SizeF to a PointF.

ToSize()

Converts a SizeF to a Size structure with truncated size values.

ToString()

Creates a human-readable string that represents this SizeF.

Operators

operator +(SizeF, SizeF)

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

operator ==(SizeF, SizeF)

Tests whether two SizeF structures are equal.

explicit operator PointF(SizeF)

Converts the specified SizeF to a PointF.

operator !=(SizeF, SizeF)

Tests whether two SizeF structures are different.

operator -(SizeF, SizeF)

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