Пример #1
0
 ///	static FromControl Methods (relative to the control)
 static public DRect FromControl(Control ctl, Padding pad)
 {
     return(new DRect(DPoint.GetPaddingTopLeft(pad), DPoint.GetClientSize(ctl) - DPoint.GetPaddingOffset(pad)));
 }
Пример #2
0
 ///	static FromControl Methods (relative to the control)
 static public DRect FromClientInfo(DPoint ClientSize, Padding pad)
 {
     return(new DRect(DPoint.GetPaddingTopLeft(pad), ClientSize - DPoint.GetPaddingOffset(pad)));
 }