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

Left() public method

Moves the cusor left by the specified amount of columns.
public Left ( int amount ) : Cursor
amount int The amount of columns to move the cursor
return Cursor
        public Cursor Left(int amount)
        {
            int newX = _position.X - amount;

            if (newX < 0)
                newX = 0;

            Position = new Point(newX, _position.Y);
            return this;
        }