Share via


ExtendedProperties.IndexOf Method (ExtendedProperty)

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    ep As ExtendedProperty _
) As Integer
'Usage
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 function IndexOf(
    ep : ExtendedProperty
) : int

Parameters

Return Value

Type: System.Int32
The index of the ExtendedProperty object within an ExtendedProperties collection.

Remarks

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

Examples

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);

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ExtendedProperties Class

ExtendedProperties Members

IndexOf Overload

Microsoft.Ink Namespace

ExtendedProperty