Exemplo n.º 1
0
 public ControlElement GetCE(PointF location)
 {
     for (var ce = ControlElement.Center; ce <= ControlElement.SizeLeft; ce++)
     {
         if (location.Capturing(PosCE(ce), SizeCE))
         {
             return(ce);
         }
     }
     if (location.Capturing(GetRect()))
     {
         return(ControlElement.Inside);
     }
     return(ControlElement.Outside);
 }