Rectangle.FromRect

FromRect(Rectangle)

Initializes new rectangle from given instance of System.Drawing.Rectangle.

public static Rectangle FromRect(Rectangle src)
ParameterTypeDescription
srcRectangleSource rectangle which position and size will be set to new rectangle.

Return Value

New rectangle.

See Also


FromRect(RectangleF)

Initializes new rectangle from given instance of System.Drawing.Rectangle.

public static Rectangle FromRect(RectangleF src)
ParameterTypeDescription
srcRectangleFSource rectangle which position and size will be set to new rectangle.

Return Value

New rectangle.

See Also