windowsforms-devexpress-dot-xtraeditors-dot-texteditadvancedmodeoptions-fe070273.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue("")]
[DXCategory("Appearance")]
public virtual string Label { get; set; }
<DXCategory("Appearance")>
<DefaultValue("")>
Public Overridable Property Label As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
The embedded editor label’s caption.
|
You can access this nested property as listed below:
| Object Type | Path to Label |
|---|---|
| RepositoryItemTextEdit |
.AdvancedModeOptions .Label
|
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.
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";
}
}
Partial Public Class Form1
Inherits DevExpress.XtraEditors.XtraForm
Public Sub New()
InitializeComponent()
textEdit1.Properties.UseAdvancedMode = DevExpress.Utils.DefaultBoolean.True
textEdit1.Properties.AdvancedModeOptions.Label = "Product Name"
End Sub
End Class
See Also
TextEditAdvancedModeOptions Class