Поделиться через


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 для java.text.AttributedString.addAttributes(java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute, ?>, int, int).

Части этой страницы — это изменения на основе работы, созданной и общей проектом с открытым исходным кодом Android и используемой в соответствии с условиями, описанными в лицензии Creative Commons 2.5 Attribution.

Применяется к