Skip to main content
All docs

RepositoryItemTextEdit.UseAdvancedMode Property

Switches the editor to Advanced Mode. This mode supports new caret and selection animations, emojis, and embedded labels. You can set up properties from the RepositoryItemTextEdit.AdvancedModeOptions group to choose which Advanced Mode features are enabled.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public DefaultBoolean UseAdvancedMode { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

Specifies whether Advanced Mode is on. The Default value is identical to False.

Available values:

Name Description Return Value

The value is true.



The value is false.



The value is specified by a global option or a higher-level object.



You must set the UseAdvancedTextEdit property before the Form’s handle is created.

public partial class Form1 : DevExpress.XtraEditors.XtraForm {
    public Form1() {
        textEdit1.Properties.UseAdvancedMode = DevExpress.Utils.DefaultBoolean.True;
        textEdit1.Properties.AdvancedModeOptions.Label = "Product Name";

Advanced Mode - WinForms Text Editor

Enable the static WindowsFormsSettings.UseAdvancedTextEdit property to activate Advanced Mode for all TextEdit-based editors in your application.

namespace DXApplication {
   internal static class Program {
      static void Main() {
         DevExpress.XtraEditors.WindowsFormsSettings.UseAdvancedTextEdit = DevExpress.Utils.DefaultBoolean.True;
         Application.Run(new Form1());

   public partial class Form1 : DevExpress.XtraEditors.XtraForm {
      public Form1() {
         textEdit1.Properties.AdvancedModeOptions.Label = "Product Name";
         dateEdit1.Properties.AdvancedModeOptions.Label = "Delivery Date";

Advanced Mode - WinForms Text Editor


Advanced Mode activates the following features:

Caret and Selection Animations

The redesigned control painter implements more responsive and smooth animations.

advanced mode animations

To disable these effects, use the AdvancedModeOptions.AllowCaretAnimation and AdvancedModeOptions.AllowSelectionAnimation properties.

Themed Selection Color

The selection color depends on the current application skin.

themed selection colors

Text Auto-Completion

The auto-complete functionality displays suggestions to complete words a user is typing in a text editor.

Use the AutoCompleteMode property to enable the auto-complete functionality. You can choose one of the following options:

  • Suggest - The editor displays a drop-down list with suggestions when a user types the first word in the edit box.


  • Append - The editor automatically completes the first entered word in the edit box. The editor uses the first matching suggestion from a source of suggestions.


  • SuggestAppend - The editor uses a combination of the Append and Suggest options — it automatically completes the first word in the edit box, and displays a drop-down list with suggestions.


  • SuggestSingleWord - The editor displays a drop-down list with custom suggestions every time a user types a new word in the edit box. The editor automatically sets the AutoCompleteSource option to CustomSource in SuggestSingleWord mode. Use the CustomizeAutoCompleteSource event, or AutoCompleteCustomSource collection to specify the custom auto-complete suggestions.


Use the AutoCompleteSource property to specify the source of auto-complete strings. To supply custom auto-complete strings, set the AutoCompleteSource property to CustomSource, and then handle the CustomizeAutoCompleteSource event or populate the TextEditAdvancedModeOptions.AutoCompleteCustomSource collection.

Embedded Labels

Set the AdvancedModeOptions.Label property to display an editor caption inside the text box. This caption moves upwards when the editor is focused.

embedded labels

Note that in order to accommodate both an embedded label and a regular editor value, the editor increases its height.

Emoji Support

Users can press “Win+.” to enter emoji from the Windows library. If the AdvancedModeOptions.UseDirectXPaint property is disabled, emoji are grayed out.


Custom Text Highlight and Painting

You can handle the TextEdit.CustomHighlightText (or RepositoryItemTextEdit.CustomHighlightText) event to highlight or paint certain strings within the control’s text in a custom manner:

  • Highlight strings with custom foreground and background colors.
  • Add padding for text blocks.
  • Specify a painter that draws text using a custom font.
  • Specify a painter that replaces strings with custom graphics (for example, icons or smiley faces).

CustomHighlightText - example

Run Demo: Memo Edit

WXI Skin

The WXI vector skin utilizes Advanced Mode to paint rounded editor corners and color accents. For that reason, Advanced Mode cannot be disabled while this skin is active.

See Also