C# 클래스 PowerArgs.Cli.ContextAssistResult

A class that represents a result that an IContentAssistProvider returns to a parent reader.
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Cancel ContextAssistResult
NoOp ContextAssistResult

공개 메소드들

메소드 설명
CreateCustomResult ( List newBuffer, int consoleRefreshLeftOffset ) : ContextAssistResult

Creates a custom result that manually replaces the entire parent reader's buffer.

CreateInsertResult ( RichCommandLineContext context, ConsoleString selection ) : ContextAssistResult

Creates a result that replaces the current token with the given selection.

비공개 메소드들

메소드 설명
ContextAssistResult ( ) : System.Collections.Generic

메소드 상세

CreateCustomResult() 공개 정적인 메소드

Creates a custom result that manually replaces the entire parent reader's buffer.
public static CreateCustomResult ( List newBuffer, int consoleRefreshLeftOffset ) : ContextAssistResult
newBuffer List the new buffer to apply to the parent reader
consoleRefreshLeftOffset int The relative offset to apply to the current cursor position
리턴 ContextAssistResult

CreateInsertResult() 공개 정적인 메소드

Creates a result that replaces the current token with the given selection.
public static CreateInsertResult ( RichCommandLineContext context, ConsoleString selection ) : ContextAssistResult
context RichCommandLineContext Context from the parent reader
selection ConsoleString The selection string to insert
리턴 ContextAssistResult

프로퍼티 상세

Cancel 공개적으로 정적으로 프로퍼티

A result that indicates that either the user or the system wants to stop the assist provider without making any changes to the parent reader
public static ContextAssistResult,PowerArgs.Cli Cancel
리턴 ContextAssistResult

NoOp 공개적으로 정적으로 프로퍼티

A result that indicates that no result is ready and that the assist provider should continue to accept keyboard input
public static ContextAssistResult,PowerArgs.Cli NoOp
리턴 ContextAssistResult