TextUtils.GetOffsetAfter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetOffsetAfter(ICharSequence, Int32) |
Finds the next text offset without splitting a surrogate pair or replacement span. |
| GetOffsetAfter(String, Int32) |
Finds the next text offset without splitting a surrogate pair. |
GetOffsetAfter(ICharSequence, Int32)
Finds the next text offset without splitting a surrogate pair or replacement span.
[Android.Runtime.Register("getOffsetAfter", "(Ljava/lang/CharSequence;I)I", "")]
public static int GetOffsetAfter(Java.Lang.ICharSequence? text, int offset);
[<Android.Runtime.Register("getOffsetAfter", "(Ljava/lang/CharSequence;I)I", "")>]
static member GetOffsetAfter : Java.Lang.ICharSequence * int -> int
Parameters
- text
- ICharSequence
The text in which to move forward.
- offset
- Int32
The current character offset.
Returns
The next offset, skipping a surrogate pair or replacement span as a unit, or the text length when already at the end.
- Attributes
Remarks
Android reference for android.text.TextUtils.getOffsetAfter.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GetOffsetAfter(String, Int32)
Finds the next text offset without splitting a surrogate pair.
public static int GetOffsetAfter(string? text, int offset);
static member GetOffsetAfter : string * int -> int
Parameters
- text
- String
The text in which to move forward.
- offset
- Int32
The current character offset.
Returns
The next offset, advancing over a complete surrogate pair when present, or the text length when already at the end.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.