IAppendable.Append Method

Definition

Overloads

Append(ICharSequence)

Appends the specified character sequence to this Appendable.

Append(Char)

Appends the specified character to this Appendable.

Append(ICharSequence, Int32, Int32)

Appends a subsequence of the specified character sequence to this Appendable.

Append(ICharSequence)

Appends the specified character sequence to this Appendable.

[Android.Runtime.Register("append", "(Ljava/lang/CharSequence;)Ljava/lang/Appendable;", "GetAppend_Ljava_lang_CharSequence_Handler:Java.Lang.IAppendableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.IAppendable Append (Java.Lang.ICharSequence? csq);
[<Android.Runtime.Register("append", "(Ljava/lang/CharSequence;)Ljava/lang/Appendable;", "GetAppend_Ljava_lang_CharSequence_Handler:Java.Lang.IAppendableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Append : Java.Lang.ICharSequence -> Java.Lang.IAppendable

Parameters

csq
ICharSequence

The character sequence to append. If csq is null, then the four characters "null" are appended to this Appendable.

Returns

A reference to this Appendable

Attributes

Exceptions

if an I/O error occurs.

Remarks

Appends the specified character sequence to this Appendable.

Depending on which class implements the character sequence csq, the entire sequence may not be appended. For instance, if csq is a java.nio.CharBuffer then the subsequence to append is defined by the buffer's position and limit.

Java documentation for java.lang.Appendable.append(java.lang.CharSequence).

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

Append(Char)

Appends the specified character to this Appendable.

[Android.Runtime.Register("append", "(C)Ljava/lang/Appendable;", "GetAppend_CHandler:Java.Lang.IAppendableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.IAppendable Append (char c);
[<Android.Runtime.Register("append", "(C)Ljava/lang/Appendable;", "GetAppend_CHandler:Java.Lang.IAppendableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Append : char -> Java.Lang.IAppendable

Parameters

c
Char

The character to append

Returns

A reference to this Appendable

Attributes

Exceptions

if an I/O error occurs.

Remarks

Appends the specified character to this Appendable.

Java documentation for java.lang.Appendable.append(char).

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

Append(ICharSequence, Int32, Int32)

Appends a subsequence of the specified character sequence to this Appendable.

[Android.Runtime.Register("append", "(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;", "GetAppend_Ljava_lang_CharSequence_IIHandler:Java.Lang.IAppendableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.IAppendable Append (Java.Lang.ICharSequence? csq, int start, int end);
[<Android.Runtime.Register("append", "(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;", "GetAppend_Ljava_lang_CharSequence_IIHandler:Java.Lang.IAppendableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Append : Java.Lang.ICharSequence * int * int -> Java.Lang.IAppendable

Parameters

csq
ICharSequence

The character sequence from which a subsequence will be appended. If csq is null, then characters will be appended as if csq contained the four characters "null".

start
Int32

The index of the first character in the subsequence

end
Int32

The index of the character following the last character in the subsequence

Returns

A reference to this Appendable

Attributes

Exceptions

if start , end , start > end or end is greater than the length of csq.

if an I/O error occurs.

Remarks

Appends a subsequence of the specified character sequence to this Appendable.

An invocation of this method of the form out.append(csq, start, end) when csq is not null, behaves in exactly the same way as the invocation

out.append(csq.subSequence(start, end))

Java documentation for java.lang.Appendable.append(java.lang.CharSequence, 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