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

Syntax

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

Parameters

attribute
the attribute that will be applied to this string.
value
the value of the attribute that will be applied to this string.
start
the start of the range where the attribute will be applied.
end
the end of the range where the attribute will be applied.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif start , end is greater than the length of this string, or if start >= end.
Java.Lang.NullPointerExceptionif attribute is null.

Remarks

Applies a given attribute to the given range of 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