[ Version ( since = "1.10" ) ]
public class TextBuffer : Object
The TextBuffer class contains the actual text displayed in a Text widget.
A single TextBuffer object can be shared by multiple Text widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.
TextBuffer may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could integrate with an application's concept of undo/redo.