implement a Clone method for Rectangle
This commit is contained in:
parent
cec65cceb0
commit
b77bc4280c
5
MBS.Framework/Drawing/Rectangle.cs
Executable file → Normal file
5
MBS.Framework/Drawing/Rectangle.cs
Executable file → Normal 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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user