Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TextEditAdvancedModeOptions.Label Property

Gets or sets the caption of the embedded editor label. TextEdit-based editors can have embedded labels only when in Advanced Mode. See this property for more information about this mode: RepositoryItemTextEdit.UseAdvancedMode.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue("")]
[DXCategory("Appearance")]
public string Label { get; set; }

#Property Value

Type Default Description
String String.Empty

The embedded editor label’s caption.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Label
RepositoryItemTextEdit

#Remarks

Use the Label property to specify an editor caption inside the text box in advanced mode. This caption moves/shifts upwards when the editor is focused.

#Example

Note

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

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

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