C# Класс ConEmu.WinForms.ConEmuControl

This is a console emulator control that embeds a fully functional console view in a Windows Forms window. It is capable of running any console application with full interactivity and advanced console functions. Applications will detect it as an actual console and will not fall back to the output redirection mode with reduced interactivity or formatting.

The control can be used to run a console process in the console emulator. The console process is the single command executed in the control, which could be a simple executable (the console emulator is not usable after it exits), or an interactive shell like cmd or powershell or bash, which in turn can execute multiple commands, either by user input or programmatically with ConEmuSession.WriteInputText. The console emulator is what implements the console and renders the console view in the control. A new console emulator (represented by a RunningSession) is Start">started for each console process. After the root console process terminates, the console emulator might remain open (see Start spawns a new console emulator for a console process in it. You cannot run more than one console emulator (or console process) simultaneousely.

Наследование: System.Windows.Forms.Control
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AssertNotRunning void
Start ConEmuSession
TryGetConEmuHwnd void*

Открытые методы

Метод Описание
ConEmuControl ( ) : System

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
OnGotFocus ( EventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void
OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
OnPaint ( PaintEventArgs args ) : void

Приватные методы

Метод Описание
AssertNotRunning ( ) : void
Start ( [ startinfo ) : ConEmuSession
TryGetConEmuHwnd ( ) : void*

Описание методов

ConEmuControl() публичный Метод

public ConEmuControl ( ) : System
Результат System

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

OnGotFocus() защищенный Метод

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
Результат void

OnHandleCreated() защищенный Метод

protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
Результат void

OnLayout() защищенный Метод

protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
Результат void

OnPaint() защищенный Метод

protected OnPaint ( PaintEventArgs args ) : void
args PaintEventArgs
Результат void