語言

ListFormatter.Format 方法

定義

多載

名稱 Description
Format(Object[])

格式化物件清單。

Format(ICollection<Object>)

格式化一組物件。

Format(Object[])

格式化物件清單。

[Android.Runtime.Register("format", "([Ljava/lang/Object;)Ljava/lang/String;", "", ApiSince=26)]
public string? Format(params Java.Lang.Object[]? items);
[<Android.Runtime.Register("format", "([Ljava/lang/Object;)Ljava/lang/String;", "", ApiSince=26)>]
member this.Format : Java.Lang.Object[] -> string

參數

items
Object[]

格式化項目。 每個 toString() 方法都會被呼叫。

傳回

以字串格式化的項目

屬性

備註

格式化物件清單。

Android 參考資料。android.icu.text.ListFormatter.format

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Format(ICollection<Object>)

格式化一組物件。

[Android.Runtime.Register("format", "(Ljava/util/Collection;)Ljava/lang/String;", "", ApiSince=26)]
public string? Format(System.Collections.Generic.ICollection<object>? items);
[<Android.Runtime.Register("format", "(Ljava/util/Collection;)Ljava/lang/String;", "", ApiSince=26)>]
member this.Format : System.Collections.Generic.ICollection<obj> -> string

參數

items
ICollection<Object>

格式化項目。 每個 toString() 方法都會被呼叫。

傳回

以字串格式化的項目

屬性

備註

格式化一組物件。 每個 toString() 方法都會被呼叫。

Java 文件 android.icu.text.ListFormatter.format(java.util.Collection<?>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於