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
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
The embedded editor label’s caption. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Label |
---|---|
Repository |
|
#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 Use
property before the Form’s handle is created.
Enable the static Windows
public partial class Form1 : DevExpress.XtraEditors.XtraForm {
public Form1() {
InitializeComponent();
textEdit1.Properties.UseAdvancedMode = DevExpress.Utils.DefaultBoolean.True;
textEdit1.Properties.AdvancedModeOptions.Label = "Product Name";
}
}