XRGaugeDashboardItem Class

A panel that represents a Gauge dashboard item in the exported document.

Namespace: DevExpress.DashboardCommon

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


public class XRGaugeDashboardItem :


When you handle the IDashboardControl.CustomExport event, call the CustomExportEventArgs.GetPrintableControls/CustomExportEventArgs.GetPrintableControl(String) method to get XRGaugeDashboardItem that is a printable control corresponding to a Gauge item. Use the XRGaugeDashboardItem.Gauges property to get printable gauges (a collection of the XRDashboardGauge objects).

The following code snippet illustrates how to get XRGaugeDashboardItem and customize printable gauges.

 foreach(KeyValuePair<string, XRControl> printableControl in e.GetPrintableControls()) {
    XRGaugeDashboardItem xrGaugeDashboardItem = printableControl.Value as XRGaugeDashboardItem;
    if(xrGaugeDashboardItem != null) {
        foreach(XRDashboardGauge xrDashboardGauge in xrGaugeDashboardItem.Gauges) {
            xrDashboardGauge.MainSeriesLabel.ForeColor = Color.Red;
            xrDashboardGauge.SecondarySeriesLabel.ForeColor = Color.Red;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the XRGaugeDashboardItem class.


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.

See Also