{
[Serializable]
[ComVisible (true)]
+#if !MONOTOUCH && !MONOMAC
[TypeConverter (typeof (RectangleConverter))]
+#endif
public struct Rectangle
{
private int x, y, width, height;
public static readonly Rectangle Empty;
-#if TARGET_JVM
- internal java.awt.Rectangle NativeObject {
- get {
- return new java.awt.Rectangle(X,Y,Width,Height);
- }
- }
-#endif
/// <summary>
/// Ceiling Shared Method
public static bool operator == (Rectangle left, Rectangle right)
{
- return ((left.Location == right.Location) &&
+ return ((left.Location == right.Location) &&
(left.Size == right.Size));
}
public static bool operator != (Rectangle left, Rectangle right)
{
- return ((left.Location != right.Location) ||
+ return ((left.Location != right.Location) ||
(left.Size != right.Size));
}
this.height = height;
}
+
+
/// <summary>
/// Bottom Property
/// </summary>
public void Offset (int x, int y)
{
- x += x;
- y += y;
+ this.x += x;
+ this.y += y;
}
/// <summary>