CommandCompletion Class

Definition

Provides a set of possible completions for given input.

public ref class CommandCompletion
public class CommandCompletion
type CommandCompletion = class
Public Class CommandCompletion
Inheritance
CommandCompletion

Constructors

CommandCompletion(Collection<CompletionResult>, Int32, Int32, Int32)

Construct the result CompleteInput or TabExpansion2.

Properties

CompletionMatches

Gets all the completion results.

CurrentMatchIndex

Current index in CompletionMatches.

ReplacementIndex

Returns the starting replacement index from the original input.

ReplacementLength

Returns the length of the text to replace from the original input.

Methods

CompleteInput(Ast, Token[], IScriptPosition, Hashtable)
CompleteInput(Ast, Token[], IScriptPosition, Hashtable, PowerShell)

Invokes the script function TabExpansion2.

CompleteInput(String, Int32, Hashtable)
CompleteInput(String, Int32, Hashtable, PowerShell)

Invokes the script function TabExpansion2.

GetNextResult(Boolean)

Get the next result, moving forward or backward. Supports wraparound, so if there are any results at all, this method will never fail and never return null.

MapStringInputToParsedInput(String, Int32)

Applies to