Share via


StylusAsyncPluginCollection.IndexOf Method

Searches for the specified asynchronous plug-in and returns the zero-based index of the first occurrence of the plug-in within the entire StylusAsyncPluginCollection collection.

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

Syntax

'Declaration
Public Function IndexOf ( _
    plugin As IStylusAsyncPlugin _
) As Integer
'Usage
Dim instance As StylusAsyncPluginCollection 
Dim plugin As IStylusAsyncPlugin 
Dim returnValue As Integer 

returnValue = instance.IndexOf(plugin)
public int IndexOf(
    IStylusAsyncPlugin plugin
)
public:
int IndexOf(
    IStylusAsyncPlugin^ plugin
)
public function IndexOf(
    plugin : IStylusAsyncPlugin
) : int

Parameters

Return Value

Type: System.Int32
If found, the zero-based index of the first occurrence of the plug-in specified in the plugin property, within the entire asynchronous plug-in collection; otherwise, -1.

Remarks

If this method cannot find the asynchronous plug-in specified in the plugin parameter within the entire StylusAsyncPluginCollection collection, this method returns -1.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

StylusAsyncPluginCollection Class

StylusAsyncPluginCollection Members

Microsoft.StylusInput Namespace