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
leftdoubleThe X-coordinate of the left edge.
topdoubleThe Y-coordinate of the top edge.
widthdoubleThe width of the rectangle.
heightdoubleThe height of the rectangle.