Console.GetCursorPosition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the position of the cursor.
public:
static ValueTuple<int, int> GetCursorPosition();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static (int Left, int Top) GetCursorPosition ();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static (int Left, int Top) 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>
Public Shared Function GetCursorPosition () As ValueTuple(Of Integer, Integer)
Returns
The column and row position of the cursor.
- Attributes
Remarks
Columns are numbered from left to right starting at 0. Rows are numbered from top to bottom starting at 0.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET