Console.CursorVisible Property

 

Gets or sets a value indicating whether the cursor is visible.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

static member CursorVisible : bool with get, set

Property Value

Type: System.Boolean

true if the cursor is visible; otherwise, false.

Exception Condition
SecurityException

The user does not have permission to perform this action.

IOException

An I/O error occurred.

Win9xFamily

The effect of a set operation persists until the termination of the application that performs the operation. The cursor visibility reverts to its original value after the application terminates.

This example demonstrates the CursorVisible property. The example makes the cursor visible if the first column of input is a '+' character or invisible if the input is a '-' character.

No code example is currently available or this language may not be supported.

UIPermission

for modifying safe top-level windows and subwindows. Associated enumeration: UIPermissionWindow.SafeTopLevelWindows

.NET Framework
Available since 2.0
Return to top
Show: