Пример #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)));
 }