Select Method (SLAutoCompleteBox)

Action

Types the given text into the auto box complete box and selects a match.

If there is no match after entering the text an exception is thrown. If value of the parameter matchIndex is less than 0 or greater than the number of matches an exception is thrown as well.

Syntax

C#
autoCompleteBox.Select(text, [matchIndex])
VB
autoCompleteBox.Select(text, [matchIndex])
Variable Description
text The text to type into the text box. String.
matchIndex Optional: The index of the match to select. The value is zero-based. Integer.

Examples

VB

In order to select the first match starting with the text "Apple" type:
autoCompletBox.Select("Apple")
In order to select the third match starting with the text "A" type:
autoCompletBox.Select("A", 2)