Langage

AttributedString.AddAttributes Méthode

Définition

Ajoute un ensemble d’attributs à une sous-plage de la chaîne.

[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

Paramètres

attributes
IDictionary<AttributedCharacterIteratorAttribute,Object>

Attributs à ajouter à la chaîne.

beginIndex
Int32

Index du premier caractère de la plage.

endIndex
Int32

Index du caractère suivant le dernier caractère de la plage.

Attributs

Remarques

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à