Console.GetCursorPosition 方法

定义

获取游标的位置。

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)

返回

ValueTuple<Int32,Int32>

游标的列和行位置。

属性

注解

将从 0 开始从左到右对列进行编号。 从上到下,从 0 开始为行编号。

适用于