ContextLinkBaseCollection.IndexOf - метод
Обновлен: Ноябрь 2007
Returns the index of a specific ContextLinkBase object within a ContextLinkBaseCollection.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public Function IndexOf ( _
link As ContextLinkBase _
) As Integer
'Применение
Dim instance As ContextLinkBaseCollection
Dim link As ContextLinkBase
Dim returnValue As Integer
returnValue = instance.IndexOf(link)
public int IndexOf(
ContextLinkBase link
)
public:
int IndexOf(
ContextLinkBase^ link
)
public int IndexOf(
ContextLinkBase link
)
public function IndexOf(
link : ContextLinkBase
) : int
Параметры
- link
Тип: System.Windows.Ink.AnalysisCore.ContextLinkBase
The ContextLinkBase object associated with the index.
Возвращаемое значение
Тип: System.Int32
The index of the specific ContextLinkBase object within a ContextLinkBaseCollection.
Заметки
If a ContextLinkBase object that does not exist in the ContextLinkBaseCollection collection is passed in, this method returns -1.
Примеры
The following example shows how to find the index of a specific ContextLinkBase named myLink, which may be contained in a ContextLinkBaseCollection named links.
Dim index As Integer = links.IndexOf(myLink)
int index = links.IndexOf(myLink);
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
ContextLinkBaseCollection Класс