All docs
V20.2
21.1 (EAP/Beta)
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

XRDashboardGauge Class

A printable gauge in the exported Gauge dashboard item.

Namespace: DevExpress.DashboardCommon

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

Declaration

public class XRDashboardGauge :
    XRPanel

Remarks

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 image illustrates elements of the printable gauge:

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;
        }
    }
 }
See Also