Share via


IndexOf Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the index number of the specified text run 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

'Declaration
Public Function IndexOf ( _
    run As TextRun _
) As Integer
public int IndexOf(
    TextRun run
)
public:
int IndexOf(
    TextRun^ run
)
member IndexOf : 
        run:TextRun -> int 
public function IndexOf(
    run : TextRun
) : int

Parameters

Return Value

Type: System. . :: . .Int32
The index number of the specified text run object, or -1 if the object is not found in the current collection.

.NET Framework Security

See Also

Reference

TextRunCollection Class

Microsoft.SPOT.Presentation.Controls Namespace