Table of Contents

Struct SizeF

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Represents the size of a rectangular region with an ordered pair of width and height.

public struct SizeF : IEquatable<SizeF>
Implements
Inherited Members

Constructors

SizeF(float, float)

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

SizeF(PointF)

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

SizeF(SizeF)

Initializes a new instance of the SizeF class from the specified existing SizeF.

Fields

Empty

Initializes a new instance of the SizeF class.

Properties

Height

Represents the vertical component of this SizeF.

IsEmpty

Tests whether this SizeF has zero width and height.

Width

Represents the horizontal component of this SizeF.

Methods

Add(SizeF, SizeF)

Performs vector addition of two SizeF objects.

Equals(object)

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

Equals(SizeF)

Tests whether two SizeF objects are identical.

GetHashCode()

Generates a hashcode from the width and height

Subtract(SizeF, SizeF)

Contracts a SizeF by another SizeF.

ToString()

Creates a human-readable string that represents this SizeF.

Operators

operator +(SizeF, SizeF)

Performs vector addition of two SizeF objects.

operator /(SizeF, float)

Divides SizeF by a float producing SizeF.

operator ==(SizeF, SizeF)

Tests whether two SizeF objects are identical.

explicit operator PointF(SizeF)

Converts the specified SizeF to a PointF.

operator !=(SizeF, SizeF)

Tests whether two SizeF objects are different.

operator *(float, SizeF)

Multiplies SizeF by a float producing SizeF.

operator *(SizeF, float)

Multiplies SizeF by a float producing SizeF.

operator -(SizeF, SizeF)

Contracts a SizeF by another SizeF