Skip to main content
All docs

XRTextBox Class

An XRTextBox control that displays a TextBox dashboard item in the exported document.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.2.Core.dll

NuGet Package: DevExpress.Dashboard.Core


public class XRTextBox :


XRTextBox is a printable control that corresponds to a TextBox item. Call the e.GetPrintableControls/e.GetPrintableControl method to get the XRTextBox control when you handle one of the following events:

The following code snippet illustrates how to get XRTextBox and customize the TextBox dashboard item:

using DevExpress.DashboardCommon;
using DevExpress.XtraReports.UI;
using System.Collections.Generic;
using System.Windows.Forms;
private void DashboardDesigner1_CustomExport_1(object sender, CustomExportEventArgs e){
    foreach (KeyValuePair<string, XRControl> xrControl in e.GetPrintableControls()){
        XRTextBox xrTextBox = xrControl.Value as XRTextBox;
        if (xrTextBox != null){
            xrTextBox.CalculateDocumentVariable += OnCalculateDocumentVariable;
private void OnCalculateDocumentVariable(object sender, DevExpress.XtraRichEdit.CalculateDocumentVariableEventArgs e){
        e.Value += " (Custom text for Exporter)";

Custom Export TextBox

See Also