ICompletionItemCollectionView Interface
Provides the base requirements for an object that represents a filtered collection view of ICompletionItem objects.
public interface ICompletionItemCollectionView
Properties
Count
Gets the number of items in the collection view.
this[int]
Gets the item at the specified index.
[C#] In C#, this property is the indexer for the CompletionItemCollectionView
class.
ICompletionItem this[int index] { get; }
Parameter | Type | Description |
---|---|---|
index | int | The index of the item to return. |
Property Value
- ICompletionItem:
The item at the specified index.
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:
true
if 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.
int IndexOf(ICompletionItem item)
Parameter | Type | Description |
---|---|---|
item | ICompletionItem | The ICompletionItem to locate in the collection. |
Returns
- int:
The zero-based index of the first occurrence of an ICompletionItem within the entire collection, if found; otherwise,
-1
.