SadConsole.Consoles.Cursor.Down C# (CSharp) Method

Down() public method

Moves the cusor down by the specified amount of lines.
public Down ( int amount ) : Cursor
amount int The amount of lines to move the cursor
return Cursor
        public Cursor Down(int amount)
        {
            int newY = _position.Y + amount;

            if (newY >= ((SurfaceEditor)_console.Target).TextSurface.Height)
                newY = ((SurfaceEditor)_console.Target).TextSurface.Height - 1;

            Position = new Point(_position.X, newY);
            return this;
        }