SourceGrid.GridSubPanelBase.RectanglePanelToGrid C# (CSharp) Method

RectanglePanelToGrid() public method

Converts a panel coordinate rectangle to Grid coordinate rectangle
public RectanglePanelToGrid ( Rectangle p_PanelRectangle ) : Rectangle
p_PanelRectangle System.Drawing.Rectangle
return System.Drawing.Rectangle
        public Rectangle RectanglePanelToGrid(Rectangle p_PanelRectangle)
        {
            Point l_Point = PointPanelToGrid(p_PanelRectangle.Location);

            return new Rectangle(l_Point.X, l_Point.Y, p_PanelRectangle.Size.Width, p_PanelRectangle.Size.Height);
        }