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

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP, Windows 7, Windows 2008 R2, Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft