# Element structure and document object model

The document object model of RadTextBoxControl is represented by **LineInfo** class and **ITextBlock** interface. The **LineInfo** class contains logical information about the start and end block of the line and its size. The **ITextBlock** interface exposes layout information of a single word. Notice that the elements which implement **ITextBlock** interface should be inheritors of `RadElement`.

The visual element structure of the `RadTextBoxControlElement` is presented on the following diagram:

![WinForms RadTextBoxControl Element Structure](https://www.telerik.com/products/winforms/documentation/assets/54a9aa3b56f8d29639c5bb296cfa7fc2/editors-textboxcontrol-element-structure001.png)

* **TextBoxViewElement** represents a viewport that is responsible for the layout and arrangement of all text blocks. It executes layout algorithms for single, multi-line and word wrap layout. It inherits from ITextBlock.

* **TextBlockElement** represents a single word, which is rendered on the viewport.

Depending on how content of the editor is changed, one or more instances of **ITextBlock** can be merged into a single instance.

## See Also

* [Caret positioning and selection](https://www.telerik.com/products/winforms/documentation/controls/editors/textboxcontrol/caret-positioning-and-selection)
* [Creating custom blocks](https://www.telerik.com/products/winforms/documentation/controls/editors/textboxcontrol/creating-custom-blocks)
* [AutoComplete](https://www.telerik.com/products/winforms/documentation/controls/editors/textboxcontrol/autocomplete)
* [Properties and Events](https://www.telerik.com/products/winforms/documentation/controls/editors/textboxcontrol/properties)
* [Text editing](https://www.telerik.com/products/winforms/documentation/controls/editors/textboxcontrol/text-editing)
