Exemple #1
0
 public static Size GetSize(this RECT rect)
 {
     return(new Size(rect.GetWidth(), rect.GetHeight()));
 }
Exemple #2
0
 public static Rectangle ToRectangle(this RECT r)
 {
     return(new Rectangle(r.left, r.top, r.GetWidth(), r.GetHeight()));
 }