Method FromSize
FromSize(double, double, double, double)
Creates a new rectangle from its top-left coordinate and dimensions.
public static Rectangle FromSize(double left, double top, double width, double height)
Parameters
left
doubleThe X-coordinate of the left edge.
top
doubleThe Y-coordinate of the top edge.
width
doubleThe width of the rectangle.
height
doubleThe height of the rectangle.