PowerArgs.Cli.ConsoleControl.CalculateAbsolutePosition C# (CSharp) Method

CalculateAbsolutePosition() private method

private CalculateAbsolutePosition ( ) : Point
return Point
        internal Point CalculateAbsolutePosition()
        {
            var x = X;
            var y = Y;

            var tempParent = Parent;
            while (tempParent != null)
            {
                x += tempParent.X;
                y += tempParent.Y;
                tempParent = tempParent.Parent;
            }

            return new Point(x, y);
        }