Java.Util.Scanner.FindWithinHorizon Method
Tries to find the pattern in the input between the current position and the specified horizon.

Syntax

[Android.Runtime.Register("findWithinHorizon", "(Ljava/lang/String;I)Ljava/lang/String;", "")]
public string FindWithinHorizon (string pattern, int horizon)

See Also

Scanner.FindWithinHorizon(Java.Util.Regex.Pattern, System.Int32)

Parameters

pattern
the pattern used to scan.
horizon
the search limit.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the Scanner is closed.
Java.Lang.IllegalArgumentExceptionif horizon is less than zero.

Remarks

Tries to find the pattern in the input between the current position and the specified horizon. Delimiters are ignored. This call is the same as invoking findWithinHorizon(Pattern.compile(pattern)).

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1