Skip to main content
A newer version of this page is available. .

TextEdit

Overview

The TextEdit control is a simple text editor. It supports all basic text editing features, including selections and built-in context menu.

TextEdit Context Menu

The TextEdit control offers the following features.

Standalone TextEdit

To add a standalone TextEdit to a Window, drag it from the Toolbox.

The following sample demonstrates how to create a TextEdit using XAML markup.

<dxe:TextEdit VerticalScrollBarVisibility="Auto" AcceptsReturn="True" NullText="Type your name here..."/>

In-Place TextEdit

To embed a TextEdit into a container control, use the TextEditSettings class.

The following sample demonstrates how to embed a TextEdit into a GridControl column.

<dxg:GridControl>
    <dxg:GridColumn FieldName="FirstName">
        <dxg:GridColumn.EditSettings>
            <dxe:TextEditSettings/>
        </dxg:GridColumn.EditSettings>
    </dxg:GridColumn>
    <dxg:GridControl.View>
        <dxg:TableView/>
    </dxg:GridControl.View>
</dxg:GridControl>