Back to Devexpress

RepositoryItemCollection.IndexOf(RepositoryItem) Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcollection-dot-indexof-x28-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-x29.md

latest1.8 KB
Original Source

RepositoryItemCollection.IndexOf(RepositoryItem) Method

Returns the specified repository item’s position within the collection.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual int IndexOf(
    RepositoryItem item
)
vb
Public Overridable Function IndexOf(
    item As RepositoryItem
) As Integer

Parameters

NameTypeDescription
itemRepositoryItem

A RepositoryItem descendant to locate in the collection.

|

Returns

TypeDescription
Int32

An integer value representing the item’s zero-based index. -1 if the collection doesn’t contain the specified repository item.

|

See Also

Item

RepositoryItemCollection Class

RepositoryItemCollection Members

DevExpress.XtraEditors.Repository Namespace