다음을 통해 공유


Bidi.ReorderVisually(Byte[], Int32, Object[], Int32, Int32) Method

Definition

Reorder the objects in the array into visual order based on their levels.

[Android.Runtime.Register("reorderVisually", "([BI[Ljava/lang/Object;II)V", "")]
public static void ReorderVisually (byte[]? levels, int levelStart, Java.Lang.Object[]? objects, int objectStart, int count);
[<Android.Runtime.Register("reorderVisually", "([BI[Ljava/lang/Object;II)V", "")>]
static member ReorderVisually : byte[] * int * Java.Lang.Object[] * int * int -> unit

Parameters

levels
Byte[]

an array representing the bidi level of each object

levelStart
Int32

the start position in the levels array

objects
Object[]

the array of objects to be reordered into visual order

objectStart
Int32

the start position in the objects array

count
Int32

the number of objects to reorder

Attributes

Exceptions

if count, levelStart or objectStart is negative; if count > levels.length - levelStart or if count > objects.length - objectStart.

Remarks

Reorder the objects in the array into visual order based on their levels. This is a utility function to use when you have a collection of objects representing runs of text in logical order, each run containing text at a single level. The elements at index from objectStart up to objectStart + count in the objects array will be reordered into visual order assuming each run of text has the level indicated by the corresponding element in the levels array (at index - objectStart + levelStart).

Java documentation for java.text.Bidi.reorderVisually(byte[], int, java.lang.Object[], 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