Поделиться через


ExtendedProperties.IndexOf - метод (ExtendedProperty)

Обновлен: Ноябрь 2007

Returns the index of a specific ExtendedProperty object within an ExtendedProperties collection, based on the name of the ExtendedProperty object.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Function IndexOf ( _
    ep As ExtendedProperty _
) As Integer
'Применение
Dim instance As ExtendedProperties
Dim ep As ExtendedProperty
Dim returnValue As Integer

returnValue = instance.IndexOf(ep)
public int IndexOf(
    ExtendedProperty ep
)
public:
int IndexOf(
    ExtendedProperty^ ep
)
public int IndexOf(
    ExtendedProperty ep
)
public function IndexOf(
    ep : ExtendedProperty
) : int

Параметры

Возвращаемое значение

Тип: System.Int32
The index of the ExtendedProperty object within an ExtendedProperties collection.

Заметки

If an ExtendedProperty object is passed in that does not exist in the ExtendedProperties collection, this method returns -1.

Примеры

In this example, the index of an ExtendedProperty object within an ExtendedProperties collection is obtained.

Dim idx As Integer = stroke.ExtendedProperties.IndexOf(exProp)
int idx = stroke.ExtendedProperties.IndexOf(exProp);

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

ExtendedProperties Класс

ExtendedProperties - члены

IndexOf - перегрузка

Microsoft.Ink - пространство имен

ExtendedProperty