SizeF class

SizeF class

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

The SizeF type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the SizeF structure from the specified SizeF.
initInitializes a new instance of the SizeF structure from the specified PointF.
initInitializes a new instance of the SizeF structure from the specified dimensions.
initConstructs a new instance of SizeF

Properties

PropertyDescription
emptyGets a new instance of the SizeF structure that has SizeF.width and SizeF.height values set to zero.
is_emptyGets a value indicating whether this SizeF has zero width and height.
widthGets or sets the horizontal component of this SizeF.
heightGets or sets the vertical component of this SizeF.

Methods

MethodDescription
addAdds the width and height of one SizeF structure to the width and height of another SizeF structure.
subtractSubtracts the width and height of one SizeF structure from the width and height of another SizeF structure.
to_point_fConverts a SizeF to a PointF.
to_sizeConverts a SizeF to a Size structure with truncated size values.

See Also