Console.GetCursorPosition Metod

Definition

Hämtar markörens position.

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)

Returer

Markörens kolumn- och radposition.

Attribut

Kommentarer

Kolumner numreras från vänster till höger med början 0. Raderna numreras uppifrån och ned med början 0.

Gäller för