As opposed to the simpler Entry
class for rather short texts, TextView
class is structured in a way so the data is stored in a separate data model object. That data model, a text buffer, is accessible by means of the Buffer
property.
The TextBuffer.Text
property of that object allows you to retrieve or modify the text shown in the TextView
. Refer to the example in the TextView
docs to see its exemplary use.