ICompletionItemCollectionView Interface
Provides the base requirements for an object that represents a filtered collection view of ICompletionItem objects.
public interface ICompletionItemCollectionView : ICollectionView, IEnumerable, INotifyCollectionChanged
Properties
Count
Gets the number of items in the collection view.
Item[Int32]
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 | Int32 | 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
- Boolean:
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
- Int32:
The zero-based index of the first occurrence of an ICompletionItem within the entire collection, if found; otherwise,
-1
.