SetCursorPosition() public static method

public static SetCursorPosition ( int left, int top ) : void
left int
top int
return void
コード例 #1
0
ファイル: Console.cs プロジェクト: TelsaV/corefx
        public static void SetCursorPosition(int left, int top)
        {
            // Basic argument validation.  The PAL implementation may provide further validation.
            if (left < 0 || left >= short.MaxValue)
            {
                throw new ArgumentOutOfRangeException(nameof(left), left, SR.ArgumentOutOfRange_ConsoleBufferBoundaries);
            }
            if (top < 0 || top >= short.MaxValue)
            {
                throw new ArgumentOutOfRangeException(nameof(top), top, SR.ArgumentOutOfRange_ConsoleBufferBoundaries);
            }

            ConsolePal.SetCursorPosition(left, top);
        }