Bidi.SetLine(Int32, Int32) Method

Definition

setLine() returns a Bidi object to contain the reordering information, especially the resolved levels, for all the characters in a line of text.

[Android.Runtime.Register("setLine", "(II)Landroid/icu/text/Bidi;", "GetSetLine_IIHandler", ApiSince=29)]
public virtual Android.Icu.Text.Bidi? SetLine (int start, int limit);
[<Android.Runtime.Register("setLine", "(II)Landroid/icu/text/Bidi;", "GetSetLine_IIHandler", ApiSince=29)>]
abstract member SetLine : int * int -> Android.Icu.Text.Bidi
override this.SetLine : int * int -> Android.Icu.Text.Bidi

Parameters

start
Int32

is the line's first index into the text.

limit
Int32

is just behind the line's last index into the text (its last index +1).

Returns

a Bidi object that will now represent a line of the text.

Attributes

Remarks

setLine() returns a Bidi object to contain the reordering information, especially the resolved levels, for all the characters in a line of text. This line of text is specified by referring to a Bidi object representing this information for a piece of text containing one or more paragraphs, and by specifying a range of indexes in this text.

In the new line object, the indexes will range from 0 to limit-start-1.

This is used after calling setPara() for a piece of text, and after line-breaking on that text. It is not necessary if each paragraph is treated as a single line.

After line-breaking, rules (L1) and (L2) for the treatment of trailing WS and for reordering are performed on a Bidi object that represents a line.

<strong>Important: </strong>the line Bidi object may reference data within the global text Bidi object. You should not alter the content of the global text object until you are finished using the line object.

Java documentation for android.icu.text.Bidi.setLine(int, 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