Round()

Size::Round(const SizeF&) method

Constructs a Size object from the specified SizeF object by rounding the SizeF object’s width and height values to the nearest integer values.

static Size System::Drawing::Size::Round(const SizeF &size)

Arguments

ParameterTypeDescription
sizeconst SizeF&The SizeF object to convert to construct Size object from

Return Value

A Size object constructed from size

See Also