Esempio n. 1
0
 /// <summary>
 /// Equalses the specified a rect.
 /// </summary>
 /// <param name="rect">A rect.</param>
 /// <returns></returns>
 public bool Equals(RECT rect)
 {
     if (this._Left.Equals((object)rect._Left))
     {
         if (this._Top.Equals((object)rect._Top))
         {
             if (this._Right.Equals((object)rect._Right))
             {
                 if (this._Bottom.Equals((object)rect._Bottom))
                 {
                     return true;
                 }
                 return false;
             }
             return false;
         }
         return false;
     }
     return false;
 }
Esempio n. 2
0
 /// <summary>
 /// Returns the intersection of two RECT structures.
 /// </summary>
 public static RECT Intersect(RECT rect1, RECT rect2)
 {
     return UnsafeNativeMethods.IntersectRect(rect1, rect2);
 }