XRTextBox Class
An XRTextBox control that displays a TextBox dashboard item in the exported document.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
Declaration
Remarks
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){
if(e.VariableName=="DataItem0")
e.Value += " (Custom text for Exporter)";
}
Inheritance
See Also