C# Класс PowerArgs.Cli.ContextAssistResult

A class that represents a result that an IContentAssistProvider returns to a parent reader.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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