CompletionSelection Class
Represents the current selection within an ICompletionSession.
public class CompletionSelection
- Inheritance:
- object object
Constructors
CompletionSelection(ICompletionItem, CompletionSelectionState)
Initializes a new instance of the CompletionSelection class.
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
Gets the ICompletionItem that is selected.
public ICompletionItem Item { get; }
Property Value
- ICompletionItem:
The ICompletionItem that is selected.
State
Gets a CompletionSelectionState indicating the selection state of Item.
public CompletionSelectionState State { get; }
Property Value
- CompletionSelectionState:
A CompletionSelectionState indicating the selection state of Item.
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | Another object to compare to. |
Returns
- bool:
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int:
A 32-bit signed integer that is the hash code for this instance.