AttributedString.AddAttributes Method

Definition

Adds a set of attributes to a subrange of the string.

[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

Parameters

attributes
IDictionary<AttributedCharacterIteratorAttribute,Object>

The attributes to be added to the string.

beginIndex
Int32

Index of the first character of the range.

endIndex
Int32

Index of the character following the last character of the range.

Attributes

Remarks

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

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to