Back to Devexpress

TextEditOptions.EditorName Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-texteditoptions.md

latest5.0 KB
Original Source

TextEditOptions.EditorName Property

Specifies the name of an editor used to change a control’s content in Print Preview.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue("")]
public string EditorName { get; set; }
vb
<DefaultValue("")>
Public Property EditorName As String

Property Value

TypeDefaultDescription
StringString.Empty

A string that specifies the editor name.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EditorName
XRLabel

.EditOptions .EditorName

|

Remarks

If a control’s EditOptions.Enabled property is set to true and the EditOptions.ReadOnly option is disabled, its content can be changed in Print Preview using an in-place editor invoked after clicking the corresponding field.

By default, the EditorName property is not specified, and a memo edit is used as a standard editor.

Use the EditorName property to assign a required editor to a control. All available editors are listed by the EditingFieldEditorNames class and are divided into three categories: Numeric , Date-Time and Letters.

If required, you can implement custom editors and add them to an existing or custom category.

For more information, see Content Editing in Print Preview.

The following code snippets (auto-collected from DevExpress Examples) contain references to the EditorName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-custom-controls-for-editing-report-content-in-print-preview/CS/RegisterCustomFieldEditor/Form1.cs#L60

csharp
report.xrLabel1.EditOptions.Enabled = true;
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor";

wpf-reporting-use-custom-controls-for-editing-report-content-in-print-preview/CS/MainViewModel.cs#L23

csharp
report.xrLabel1.EditOptions.Enabled = true;
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor";

reporting-winforms-custom-controls-for-editing-report-content-in-print-preview/VB/RegisterCustomFieldEditor/Form1.vb#L51

vb
report.xrLabel1.EditOptions.Enabled = True
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor"
report.xrLabel2.EditOptions.Enabled = True

wpf-reporting-use-custom-controls-for-editing-report-content-in-print-preview/VB/MainViewModel.vb#L25

vb
report.xrLabel1.EditOptions.Enabled = True
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor"

See Also

Edit Content in Print Preview

TextEditOptions Class

TextEditOptions Members

DevExpress.XtraReports.UI Namespace