C# Class System.Console

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
Beep ( ) : void
Beep ( int frequency, int duration ) : void
MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop ) : void
MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
OpenStandardError ( ) : System.IO.Stream
OpenStandardError ( int bufferSize ) : System.IO.Stream
OpenStandardInput ( ) : System.IO.Stream
OpenStandardInput ( int bufferSize ) : System.IO.Stream
OpenStandardOutput ( ) : System.IO.Stream
OpenStandardOutput ( int bufferSize ) : System.IO.Stream
Read ( ) : int
ReadKey ( ) : ConsoleKeyInfo
ReadLine ( ) : string
ResetColor ( ) : void
SetError ( System newError ) : void
SetIn ( System newIn ) : void
SetOut ( System newOut ) : void
SetWindowPosition ( int left, int top ) : void
Write ( bool value ) : void
Write ( char buffer, int index, int count ) : void
Write ( decimal value ) : void
Write ( double value ) : void
Write ( float value ) : void
Write ( int value ) : void
Write ( long value ) : void
Write ( object value ) : void
Write ( string value ) : void
Write ( string format, object arg0 ) : void
Write ( string format, object arg0, object arg1 ) : void
Write ( string format, object arg0, object arg1, object arg2 ) : void
WriteLine ( ) : void
WriteLine ( bool value ) : void
WriteLine ( char value ) : void
WriteLine ( char buffer, int index, int count ) : void
WriteLine ( decimal value ) : void
WriteLine ( double value ) : void
WriteLine ( float value ) : void
WriteLine ( int value ) : void
WriteLine ( long value ) : void
WriteLine ( object value ) : void
WriteLine ( string value ) : void
WriteLine ( string format, object arg0 ) : void
WriteLine ( string format, object arg0, object arg1 ) : void
WriteLine ( string format, object arg0, object arg1, object arg2 ) : void

Private Methods

Méthode Description
Write ( uint value ) : void
Write ( ulong value ) : void
WriteLine ( uint value ) : void
WriteLine ( ulong value ) : void

Method Details

Beep() public static méthode

public static Beep ( ) : void
Résultat void

Beep() public static méthode

public static Beep ( int frequency, int duration ) : void
frequency int
duration int
Résultat void

MoveBufferArea() public static méthode

public static MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop ) : void
sourceLeft int
sourceTop int
sourceWidth int
sourceHeight int
targetLeft int
targetTop int
Résultat void

MoveBufferArea() public static méthode

public static MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
sourceLeft int
sourceTop int
sourceWidth int
sourceHeight int
targetLeft int
targetTop int
sourceChar char
sourceForeColor ConsoleColor
sourceBackColor ConsoleColor
Résultat void

OpenStandardError() public static méthode

public static OpenStandardError ( ) : System.IO.Stream
Résultat System.IO.Stream

OpenStandardError() public static méthode

public static OpenStandardError ( int bufferSize ) : System.IO.Stream
bufferSize int
Résultat System.IO.Stream

OpenStandardInput() public static méthode

public static OpenStandardInput ( ) : System.IO.Stream
Résultat System.IO.Stream

OpenStandardInput() public static méthode

public static OpenStandardInput ( int bufferSize ) : System.IO.Stream
bufferSize int
Résultat System.IO.Stream

OpenStandardOutput() public static méthode

public static OpenStandardOutput ( ) : System.IO.Stream
Résultat System.IO.Stream

OpenStandardOutput() public static méthode

public static OpenStandardOutput ( int bufferSize ) : System.IO.Stream
bufferSize int
Résultat System.IO.Stream

Read() public static méthode

public static Read ( ) : int
Résultat int

ReadKey() public static méthode

public static ReadKey ( ) : ConsoleKeyInfo
Résultat ConsoleKeyInfo

ReadLine() public static méthode

public static ReadLine ( ) : string
Résultat string

ResetColor() public static méthode

public static ResetColor ( ) : void
Résultat void

SetError() public static méthode

public static SetError ( System newError ) : void
newError System
Résultat void

SetIn() public static méthode

public static SetIn ( System newIn ) : void
newIn System
Résultat void

SetOut() public static méthode

public static SetOut ( System newOut ) : void
newOut System
Résultat void

SetWindowPosition() public static méthode

public static SetWindowPosition ( int left, int top ) : void
left int
top int
Résultat void

Write() public static méthode

public static Write ( bool value ) : void
value bool
Résultat void

Write() public static méthode

public static Write ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

Write() public static méthode

public static Write ( decimal value ) : void
value decimal
Résultat void

Write() public static méthode

public static Write ( double value ) : void
value double
Résultat void

Write() public static méthode

public static Write ( float value ) : void
value float
Résultat void

Write() public static méthode

public static Write ( int value ) : void
value int
Résultat void

Write() public static méthode

public static Write ( long value ) : void
value long
Résultat void

Write() public static méthode

public static Write ( object value ) : void
value object
Résultat void

Write() public static méthode

public static Write ( string value ) : void
value string
Résultat void

Write() public static méthode

public static Write ( string format, object arg0 ) : void
format string
arg0 object
Résultat void

Write() public static méthode

public static Write ( string format, object arg0, object arg1 ) : void
format string
arg0 object
arg1 object
Résultat void

Write() public static méthode

public static Write ( string format, object arg0, object arg1, object arg2 ) : void
format string
arg0 object
arg1 object
arg2 object
Résultat void

WriteLine() public static méthode

public static WriteLine ( ) : void
Résultat void

WriteLine() public static méthode

public static WriteLine ( bool value ) : void
value bool
Résultat void

WriteLine() public static méthode

public static WriteLine ( char value ) : void
value char
Résultat void

WriteLine() public static méthode

public static WriteLine ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

WriteLine() public static méthode

public static WriteLine ( decimal value ) : void
value decimal
Résultat void

WriteLine() public static méthode

public static WriteLine ( double value ) : void
value double
Résultat void

WriteLine() public static méthode

public static WriteLine ( float value ) : void
value float
Résultat void

WriteLine() public static méthode

public static WriteLine ( int value ) : void
value int
Résultat void

WriteLine() public static méthode

public static WriteLine ( long value ) : void
value long
Résultat void

WriteLine() public static méthode

public static WriteLine ( object value ) : void
value object
Résultat void

WriteLine() public static méthode

public static WriteLine ( string value ) : void
value string
Résultat void

WriteLine() public static méthode

public static WriteLine ( string format, object arg0 ) : void
format string
arg0 object
Résultat void

WriteLine() public static méthode

public static WriteLine ( string format, object arg0, object arg1 ) : void
format string
arg0 object
arg1 object
Résultat void

WriteLine() public static méthode

public static WriteLine ( string format, object arg0, object arg1, object arg2 ) : void
format string
arg0 object
arg1 object
arg2 object
Résultat void