コード例 #1
0
 ///  static FromControl Methods (relative to the control)
 static public FloatRect FromControl(Control ctl, Padding pad)
 {
     return(new FloatRect(FloatPoint.GetPaddingTopLeft(pad), FloatPoint.GetClientSize(ctl) - FloatPoint.GetPaddingOffset(pad)));
 }
コード例 #2
0
 ///  static FromControl Methods (relative to the control)
 static public FloatRect FromClientInfo(FloatPoint ClientSize, Padding pad)
 {
     return(new FloatRect(FloatPoint.GetPaddingTopLeft(pad), ClientSize - FloatPoint.GetPaddingOffset(pad)));
 }