Export (0) Print
Expand All

PSHostRawUserInterface.CursorPosition Property

Gets or sets the cursor position in the screen buffer.


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

'Usage
Dim instance As PSHostRawUserInterface
Dim value As Coordinates

value = instance.CursorPosition

instance.CursorPosition = value

public abstract Coordinates CursorPosition { get; set; }
/** @property */
public abstract Coordinates get_CursorPosition ()

/** @property */
public abstract void set_CursorPosition (Coordinates value)

public abstract function get CursorPosition () : Coordinates

public abstract function set CursorPosition (value : Coordinates)

Property Value

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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft