In This Article

CompletionSelection Class

Represents the current selection within an ICompletionSession.

public class CompletionSelection
Inheritance:
object object

Constructors

CompletionSelection(ICompletionItem, CompletionSelectionState)

Represents the current selection within an ICompletionSession.

public CompletionSelection(ICompletionItem item, CompletionSelectionState state)
Parameter Type Description
item ICompletionItem

The ICompletionItem that is selected.

state CompletionSelectionState

A CompletionSelectionState indicating the selection state of Item.

Properties

Item

The ICompletionItem that is selected.

public ICompletionItem Item { get; }

Property Value

ICompletionItem

State

A CompletionSelectionState indicating the selection state of Item.

public CompletionSelectionState State { get; }

Property Value

CompletionSelectionState

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)
Parameter Type Description
obj object

The object to compare with the current object.

Returns

bool:

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

Inherited Members

Extension Methods