SizeF::ToSize Method ()

 

Converts a SizeF structure to a Size structure.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
Size ToSize()

Return Value

Type: System.Drawing::Size

Returns a Size structure.

The SizeF structure is converted to a Size structure by truncating the values of the SizeF to the next lower integer values.

.NET Framework
Available since 1.1
Return to top
Show: