PSHostRawUserInterface.CursorPosition Property


Updated: April 27, 2016

Applies To: Windows PowerShell

Gets or sets the cursor position in the screen buffer.

Namespace:   System.Management.Automation.Host
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public abstract Coordinates CursorPosition { get; set; }

Property Value

Type: System.Management.Automation.Host.Coordinates

A Coordinates object that contains the X and Y coordinates of the cursor position in the screen buffer. The view window always adjusts its location over the screen buffer so that the cursor is always visible.

To get or set the size of the cursor, see the CursorSize property.

To write to the screen buffer without updating the cursor position, use the SetBufferContents method.

Return to top

Community Additions