Rectangle.Round

Rectangle.Round method

Converts the specified RectangleF to a Rectangle by rounding the RectangleF values to the nearest integer values.

public static Rectangle Round(RectangleF value)
ParameterTypeDescription
valueRectangleFThe RectangleF to be converted.

Return Value

A new Rectangle.

See Also