ICompletionItemCollectionView Interface
Provides the base requirements for an object that represents a filtered collection view of ICompletionItem objects.
public interface ICompletionItemCollectionView
Properties
Count
The number of items in the collection view.
this[int]
The item at the specified index.
ICompletionItem? this[int index] { get; }
| Parameter | Type | Description |
|---|---|---|
| index | int | The index of the item to return. |
Property Value
Methods
Contains(ICompletionItem)
Determines whether the specified ICompletionItem is in the collection.
bool Contains(ICompletionItem item)
| Parameter | Type | Description |
|---|---|---|
| item | ICompletionItem | The ICompletionItem to locate in the collection. |
Returns
- bool:
trueif the ICompletionItem is found in the collection; otherwise,false.
IndexOf(ICompletionItem)
Searches for an ICompletionItem and returns the zero-based index of the first occurrence within the entire collection or -1 if not found.
int IndexOf(ICompletionItem item)
| Parameter | Type | Description |
|---|---|---|
| item | ICompletionItem | The ICompletionItem to locate in the collection. |