Back to Devexpress

TextEditSettings Class

wpf-devexpress-dot-xpf-dot-editors-dot-settings.md

latest6.6 KB
Original Source

TextEditSettings Class

Contains settings specific to the TextEdit editor.

Namespace : DevExpress.Xpf.Editors.Settings

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class TextEditSettings :
    BaseEditSettings,
    ISupportTextHighlighting
vb
Public Class TextEditSettings
    Inherits BaseEditSettings
    Implements ISupportTextHighlighting

Remarks

DevExpress container controls (GridControl, TreeListControl, and so on) use DevExpress WPF Editors to edit data they display. Each editor has a helper class (a BaseEditSettings descendant) that is responsible for the editor’s functionality. When the same editor is used in multiple locations, a container control uses this helper class to paint its cells. The actual editors are only created when users start to edit, and are automatically deleted when editing is completed.

Refer to the Assign Editors to Cells topic for more information.

For detailed information on text editors, see TextEdit.

Example

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

xaml
<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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the TextEditSettings class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheet-bind-grid-control-to-worksheet-data/CS/WpfSpreadsheet_DataBinding/MainWindow.xaml#L25

xml
<dxg:GridControl.Resources>
    <Style x:Key="TextEditSettingsStyle" TargetType="{x:Type dxe:TextEditSettings}">
        <Setter Property="MaskType" Value="Numeric"/>

wpf-data-grid-create-unbound-columns/CS/DXGrid_UnboundColumns_CodeBehind/Window1.xaml#L14

xml
<dxg:GridColumn.EditSettings>
    <dxe:TextEditSettings DisplayFormat="c2"/>
</dxg:GridColumn.EditSettings>

wpf-data-grid-refresh-on-timer/CS/RefreshOnTimer/MainWindow.xaml#L22

xml
<Setter.Value>
    <dxe:TextEditSettings MaskType="Numeric" Mask="f" MaskUseAsDisplayFormat="True" />
</Setter.Value>

wpf-data-grid-validate-cell-editors/CS/ValidateCell_CodeBehind/MainWindow.xaml#L16

xml
<dxg:GridColumn.EditSettings>
    <dxe:TextEditSettings AllowNullInput="False" />
</dxg:GridColumn.EditSettings>

wpf-data-grid-handle-row-double-clicks/CS/RowDoubleClick_CodeBehind/MainWindow.xaml#L13

xml
<dxg:GridColumn.EditSettings>
    <dxe:TextEditSettings HorizontalContentAlignment="Center" />
</dxg:GridColumn.EditSettings>

Inheritance

Show 23 items

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement DXFrameworkContentElement BaseEditSettings TextEditSettings ButtonEditSettings

LookUpEditSettings

CalcEditSettings

ComboBoxEditSettings

DateEditSettings

FontEditSettings

LookUpEditSettingsBase

MemoEditSettings

PopupBaseEditSettings

PopupColorEditSettings

PopupImageEditSettings

SpinEditSettings

AutoSuggestEditSettings

BrowsePathEditSettings

PopupBrushEditSettings

See Also

TextEditSettings Members

TextEdit

DevExpress.Xpf.Editors.Settings Namespace