ARCed.UI.DockPanel.SplitterDragHandler.GetMovingOffset C# (CSharp) Method

GetMovingOffset() private method

private GetMovingOffset ( Point ptMouse ) : int
ptMouse System.Drawing.Point
return int
            private int GetMovingOffset(Point ptMouse)
            {
                Rectangle rect = this.GetSplitterOutlineBounds(ptMouse);
                if (this.DragSource.IsVertical)
                    return rect.X - this.RectSplitter.X;
                else
                    return rect.Y - this.RectSplitter.Y;
            }