Console.GetCursorPosition Метод

Определение

Возвращает позицию курсора.

public:
 static ValueTuple<int, int> GetCursorPosition();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static(int Left, int Top) GetCursorPosition();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static(int Left, int Top) GetCursorPosition();
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member GetCursorPosition : unit -> ValueTuple<int, int>
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member GetCursorPosition : unit -> ValueTuple<int, int>
Public Shared Function GetCursorPosition () As ValueTuple(Of Integer, Integer)

Возвращаемое значение

Положение столбца и строки курсора.

Атрибуты

Комментарии

Столбцы нумеруются слева направо, начиная с 0. Строки нумеруются сверху вниз, начиная с 0.

Применяется к