Sdílet prostřednictvím


StylusSyncPluginCollection.IndexOf Method

Searches for the specified synchronous plug-in and returns the zero-based index of the first occurrence of that plug-in within the entire StylusSyncPluginCollection collection.

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

Syntax

'Declaration
Public Function IndexOf ( _
    plugin As IStylusSyncPlugin _
) As Integer
'Usage
Dim instance As StylusSyncPluginCollection 
Dim plugin As IStylusSyncPlugin 
Dim returnValue As Integer 

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

Parameters

Return Value

Type: System.Int32
If found, the zero-based index of the first occurrence of plugin within the entire synchronous 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

StylusSyncPluginCollection Class

StylusSyncPluginCollection Members

Microsoft.StylusInput Namespace