CompletionSelection Class
Represents the current selection within an ICompletionSession.
public class CompletionSelection
- Inheritance:
- System.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 | System.Object | Another object to compare to. |
Returns
- System.Boolean:
true if
obj
and 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
- System.Int32:
A 32-bit signed integer that is the hash code for this instance.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetType()
- System.Object.MemberwiseClone()