语言

ListFormatter.Format 方法

定义

重载

名称 说明
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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

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<?>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于