C# 클래스 mo.Setting

Console Setting command options.
파일 보기 프로젝트 열기: boolship/Mo 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetConsoleMode int
GetStdHandle System.IntPtr
SetConsoleMode int

공개 메소드들

메소드 설명
ErrorFreeSetting ( ) : bool

Check if error in setting.

IsSet ( int flag ) : int

Check if flag set in Current Mode.

SetConsole ( ) : bool

Apply console settings in specific order.

SettingCommand ( string command, int option ) : bool

Setting Command preset or specified values.

SettingPresetGroup ( int option ) : bool

Setting Preset Group options for window, buffer and other values.

ShowStatus ( ) : bool

Show console status.

TrueParse ( string s, int &result ) : bool

Parse true and false to int result.

비공개 메소드들

메소드 설명
GetConsoleMode ( IntPtr consoleHandle, int &mode ) : int
GetStdHandle ( int stdHandle ) : IntPtr
SetConsoleMode ( IntPtr consoleHandle, int mode ) : int

메소드 상세

ErrorFreeSetting() 공개 메소드

Check if error in setting.
public ErrorFreeSetting ( ) : bool
리턴 bool

IsSet() 공개 메소드

Check if flag set in Current Mode.
public IsSet ( int flag ) : int
flag int /// The console flag, e.g. ENABLE_QUICK_EDIT_MODE, ENABLE_INSERT_MODE. /// See http://msdn.microsoft.com/en-us/library/ms686033%28VS.85%29.aspx ///
리턴 int

SetConsole() 공개 메소드

Apply console settings in specific order.
public SetConsole ( ) : bool
리턴 bool

SettingCommand() 공개 메소드

Setting Command preset or specified values.
public SettingCommand ( string command, int option ) : bool
command string /// The command. ///
option int /// The option. ///
리턴 bool

SettingPresetGroup() 공개 메소드

Setting Preset Group options for window, buffer and other values.
public SettingPresetGroup ( int option ) : bool
option int /// preset option 0|1|2|3 ///
리턴 bool

ShowStatus() 공개 메소드

Show console status.
public ShowStatus ( ) : bool
리턴 bool

TrueParse() 공개 정적인 메소드

Parse true and false to int result.
public static TrueParse ( string s, int &result ) : bool
s string /// Parse the strings "true" or "t" and "false" or "f", case insensitive. ///
result int /// Set result out equal to 1 if true, or equal to Int16.MaxValue if false. ///
리턴 bool