ConsoleAttributes Class

Mentalis.org Proxy

Mentalis.org Proxy Documentation

ConsoleAttributes Class

The ConsoleAttributes class can change several attributes of your console window.

For a list of all members of this type, see ConsoleAttributes Members.

System.Object   ConsoleAttributes

[Visual Basic]
Public Class ConsoleAttributes
[C#]
public class ConsoleAttributes

Example

The following example wil change the forecolor of te console, disable 'EchoInput', ask for a string and show that string.

            ConsoleAttributes.ForeColor = ConsoleColor.White;
            Console.Write("Please enter your password: ");
            ConsoleAttributes.EchoInput = false;
            string ThePass = Console.ReadLine();
            ConsoleAttributes.EchoInput = true;
            ConsoleAttributes.ForeColor = ConsoleColor.Gray;
            Console.WriteLine("");
            Console.WriteLine("The password you entered was: " + ThePass);
            Console.WriteLine("Press enter to exit...");
            Console.Read();
            

Requirements

Namespace: Org.Mentalis.Utilities.ConsoleAttributes Namespace

Assembly: Proxy.exe

See Also

ConsoleAttributes Members | Org.Mentalis.Utilities.ConsoleAttributes Namespace