Java.Text.AttributedString.AddAttribute Method
Applies a given attribute to this string.

Syntax

[Android.Runtime.Register("addAttribute", "(Ljava/text/AttributedCharacterIterator$Attribute;Ljava/lang/Object;)V", "GetAddAttribute_Ljava_text_AttributedCharacterIterator_Attribute_Ljava_lang_Object_Handler")]
public virtual void AddAttribute (AttributedCharacterIteratorAttribute attribute, Java.Lang.Object value)

Parameters

attribute
the attribute that will be applied to this string.
value
the value of the attribute that will be applied to this string.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the length of this attributed string is 0.
Java.Lang.NullPointerExceptionif attribute is null.

Remarks

Applies a given attribute to this string.

[Android Documentation]

Requirements

Namespace: Java.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1