TextBuffer Object

      Properties   Methods   

The TextBuffer object provides access to the code associated with a project item.

Remarks

Use the TextBuffer object to modify (add, delete, or edit) the code associated with a project item. To access a TextBuffer object, use the DocumentData property of an editor window.

A line is a contiguous sequence of characters that begins immediately following the beginning of the text buffer or following a newline character, and ends at a newline character or the end of the text buffer. All references to lines are to physical lines, not logical lines. For example in a code language that is line-oriented and has line continuation characters, if a line of code is continued to the next line there are two lines, not one.