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);
[<Android.Runtime.Register("offsetByCodePoints", "(II)I", "")>]
override this.OffsetByCodePoints : int * int -> int

Parameters

index
Int32

the index to calculate the offset from.

codePointOffset
Int32

the number of code points to count.

Returns

Attributes

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

  • Character
  • <xref:Java.Lang.Character.OffsetByCodePoints(System.Char%5b%5d%2c+System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>