StringBuilder.OffsetByCodePoints(Int32, Int32) StringBuilder.OffsetByCodePoints(Int32, Int32) Method

Definition

Returns the index that is offset codePointOffset code points from index.

[Android.Runtime.Register("offsetByCodePoints", "(II)I", "")]
public override int OffsetByCodePoints (int index, int codePointOffset);
override this.OffsetByCodePoints : int * int -> int

Parameters

index
Int32 Int32

the index to calculate the offset from.

codePointOffset
Int32 Int32

the number of code points to count.

Returns

Exceptions

if index is negative or greater than Length() or if there aren't enough code points before or after index to match codePointOffset.

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.

Applies to

See also