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.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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";
}
}