語言

Bidi.ReorderVisually(Byte[], Int32, Object[], Int32, Int32) 方法

定義

根據等級將陣列中的物件重新排列成視覺順序。

[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

參數

levels
Byte[]

一個陣列,代表每個物件的 BII 層級

levelStart
Int32

等級陣列中的起始位置

objects
Object[]

要重新排序為視覺順序的物件陣列

objectStart
Int32

物件陣列中的起始位置

count
Int32

需重新排序的物件數量

屬性

例外狀況

若 count, levelStart 或 objectStart 為負;若 count > levels.length - levelStart 或 ,則 count > objects.length - objectStart。

備註

根據等級將陣列中的物件重新排列成視覺順序。 這是一個工具函式,當你有一組物件代表邏輯順序的文字連續,每個連續包含單一層級的文字時。 物件陣列中從 indexobjectStart 到 的objectStart + count元素會依視覺順序重新排序,假設每段文字的層級由 levels 陣列中對應元素所指示的層級(at )。index - objectStart + levelStart

的 java.text.Bidi.reorderVisually(byte[], int, java.lang.Object[], int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於