SizeF class

SizeF class

Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle. Compatible with .NET System.Drawing.SizeF.

The SizeF type exposes the following members:

Constructors

ConstructorDescription
__init__(self, width=0.0, height=0.0)Creates a size with the specified width and height.

Properties

PropertyDescription
widthGets the horizontal component of this size.
Read-only float.
heightGets the vertical component of this size.
Read-only float.

Remarks

Sizes are compared by their components with == and can be used as dictionary keys or set members.

See Also