C# 클래스 PowerArgs.Cli.ConsoleControl

상속: Rectangular
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs 1 사용 예제들

공개 메소드들

메소드 설명
ConsoleControl ( ) : System

Creates a new ConsoleControl

ToString ( ) : string

Gets the type and Id of this control

TryFocus ( ) : bool

Tries to give this control focus. If the focus is in the visual tree, and is in the current focus layer, and has it's CanFocus property to true then focus should be granted.

TryUnfocus ( ) : bool

Tries to unfocus this control.

보호된 메소드들

메소드 설명
OnPaint ( ConsoleBitmap context ) : void

You should override this method if you are building a custom control, from scratch, and need to control every detail of the painting process. If possible, prefer to create your custom control by deriving from ConsolePanel, which will let you assemble a new control from others.

비공개 메소드들

메소드 설명
AddedToVisualTreeInternal ( ) : void
BeforeAddedToVisualTreeInternal ( ) : void
BeforeRemovedFromVisualTreeInternal ( ) : void
CalculateAbsolutePosition ( ) : Point
CalculateRelativePosition ( ConsoleControl parent ) : Point
Event ( ) : System
FireFocused ( bool focused ) : void
HandleKeyInput ( ConsoleKeyInfo info ) : void
Paint ( ConsoleBitmap context ) : void
PaintTo ( ConsoleBitmap context ) : void
RemovedFromVisualTreeInternal ( ) : void

메소드 상세

ConsoleControl() 공개 메소드

Creates a new ConsoleControl
public ConsoleControl ( ) : System
리턴 System

OnPaint() 보호된 메소드

You should override this method if you are building a custom control, from scratch, and need to control every detail of the painting process. If possible, prefer to create your custom control by deriving from ConsolePanel, which will let you assemble a new control from others.
protected OnPaint ( ConsoleBitmap context ) : void
context ConsoleBitmap The scoped bitmap that you can paint on
리턴 void

ToString() 공개 메소드

Gets the type and Id of this control
public ToString ( ) : string
리턴 string

TryFocus() 공개 메소드

Tries to give this control focus. If the focus is in the visual tree, and is in the current focus layer, and has it's CanFocus property to true then focus should be granted.
public TryFocus ( ) : bool
리턴 bool

TryUnfocus() 공개 메소드

Tries to unfocus this control.
public TryUnfocus ( ) : bool
리턴 bool