Partager via


ViewStructure.SetTextLines(Int32[], Int32[]) Method

Definition

Set line information for test that was previously supplied through #setText(CharSequence).

[Android.Runtime.Register("setTextLines", "([I[I)V", "GetSetTextLines_arrayIarrayIHandler", ApiSince=23)]
public abstract void SetTextLines (int[]? charOffsets, int[]? baselines);
[<Android.Runtime.Register("setTextLines", "([I[I)V", "GetSetTextLines_arrayIarrayIHandler", ApiSince=23)>]
abstract member SetTextLines : int[] * int[] -> unit

Parameters

charOffsets
Int32[]

The offset in to #setText where a line starts.

baselines
Int32[]

The baseline where the line is drawn on screen.

Attributes

Remarks

Set line information for test that was previously supplied through #setText(CharSequence). This provides the line breaking of the text as it is shown on screen. This function takes ownership of the provided arrays; you should not make further modification to them.

Java documentation for android.view.ViewStructure.setTextLines(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