C# 클래스 IrcShark.Extensions.Terminal.ConsoleTerminal.WriteRequest

The WriteRequest struct is used by the ConsoleTerminal to cache requests to the Write method.
The ConsoleTerminal can only write full lines at a time, but if you want to write lines with multible color, you need to use the Write methods what doesn't end a line automatically. Therefor all calls to Write are cached and are done, when an end line is written.
파일 보기 프로젝트 열기: hapm/IrcShark

공개 프로퍼티들

프로퍼티 타입 설명
BackgroundColor ConsoleColor
ForegroundColor ConsoleColor
Text string

공개 메소드들

메소드 설명
WriteRequest ( string text, ConsoleColor fgColor, ConsoleColor bgColor ) : System

Initializes a new instance of the WriteRequest struct.

메소드 상세

WriteRequest() 공개 메소드

Initializes a new instance of the WriteRequest struct.
public WriteRequest ( string text, ConsoleColor fgColor, ConsoleColor bgColor ) : System
text string The text of the request.
fgColor ConsoleColor The foreground color to use.
bgColor ConsoleColor The backgroundcolor to use.
리턴 System

프로퍼티 상세

BackgroundColor 공개적으로 프로퍼티

The color for the text background.
public ConsoleColor BackgroundColor
리턴 ConsoleColor

ForegroundColor 공개적으로 프로퍼티

The color for the text.
public ConsoleColor ForegroundColor
리턴 ConsoleColor

Text 공개적으로 프로퍼티

The text to write.
public string Text
리턴 string