Sdílet prostřednictvím


Console.GetCursorPosition Metoda

Definice

Získá pozici kurzoru.

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

Návraty

ValueTuple<Int32,Int32>

Pozice sloupce a řádku kurzoru

Atributy

Poznámky

Sloupce se číslují zleva doprava od 0. Řádky se číslují shora dolů od 0.

Platí pro