implement a Clone method for Rectangle

This commit is contained in:
Michael Becker 2023-07-01 21:13:17 -04:00
parent cec65cceb0
commit b77bc4280c

5
MBS.Framework/Drawing/Rectangle.cs Executable file → Normal file
View File

@ -83,6 +83,11 @@ namespace MBS.Framework.Drawing
return rect;
}
public Rectangle Clone()
{
return new Rectangle(X, Y, Width, Height);
}
/// <summary>
/// Creates a <see cref="Rectangle" /> from left, top, right, bottom coordinates.
/// </summary>