/// <summary> /// Adds a rectangle to the path at the specified <paramref name="location"/> /// </summary> /// <param name="path">Path to add the rectangle to</param> /// <param name="location">Location of the rectangle</param> public static void AddRectangle(this IGraphicsPath path, RectangleF location) { path.AddRectangle(location.X, location.Y, location.Width, location.Height); }