Share via


TextBuffer.appendText Method

Appends a string to the content of the TextBuffer object.

Syntax

public void appendText(str string)

Run On

Called

Parameters

  • string
    Type: str
    The string to append.

Examples

{ 
    TextBuffer txtb = new TextBuffer(); 
    txtb.setText("[One]"); 
    txtb.appendText("[Another]"); 
    print txtb.getText(); // Will print "[One][Another]" 
}

See Also

TextBuffer Class

TextBuffer.setText Method