Share via


TextRunCollection.IndexOf Method

Returns the index number of the specified TextRun object, if that object is found in the current text run collection.

Namespace: Microsoft.SPOT.Presentation.Controls
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public int IndexOf (
         TextRun run
)

Parameters

  • run
    The TextRun object to be searched for in the current collection.

Return Value

The index number of the specified TextRun object, or -1 if the object is not found in the current collection.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

TextRunCollection Class
TextRunCollection Members
Microsoft.SPOT.Presentation.Controls Namespace