共用方式為


AttributedString.AddAttributes 方法

定義

將一組屬性新增至字串的子範圍。

[Android.Runtime.Register("addAttributes", "(Ljava/util/Map;II)V", "GetAddAttributes_Ljava_util_Map_IIHandler")]
public virtual void AddAttributes (System.Collections.Generic.IDictionary<Java.Text.AttributedCharacterIteratorAttribute,object>? attributes, int beginIndex, int endIndex);
[<Android.Runtime.Register("addAttributes", "(Ljava/util/Map;II)V", "GetAddAttributes_Ljava_util_Map_IIHandler")>]
abstract member AddAttributes : System.Collections.Generic.IDictionary<Java.Text.AttributedCharacterIteratorAttribute, obj> * int * int -> unit
override this.AddAttributes : System.Collections.Generic.IDictionary<Java.Text.AttributedCharacterIteratorAttribute, obj> * int * int -> unit

參數

attributes
IDictionary<AttributedCharacterIteratorAttribute,Object>

要加入至字串的屬性。

beginIndex
Int32

範圍中第一個字元的索引。

endIndex
Int32

範圍最後一個字元後面的字元索引。

屬性

備註

java.text.AttributedString.addAttributes(java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute, ?>, int, int)Java 檔。

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

適用於