Partager via


Bidi.GetParagraphIndex(Int32) Method

Definition

Get the index of a paragraph, given a position within the text.

[Android.Runtime.Register("getParagraphIndex", "(I)I", "GetGetParagraphIndex_IHandler", ApiSince=29)]
public virtual int GetParagraphIndex (int charIndex);
[<Android.Runtime.Register("getParagraphIndex", "(I)I", "GetGetParagraphIndex_IHandler", ApiSince=29)>]
abstract member GetParagraphIndex : int -> int
override this.GetParagraphIndex : int -> int

Parameters

charIndex
Int32

is the index of a character within the text, in the range [0..getProcessedLength()-1].

Returns

The index of the paragraph containing the specified position, starting from 0.

Attributes

Remarks

Get the index of a paragraph, given a position within the text.

Java documentation for android.icu.text.Bidi.getParagraphIndex(int).

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