ArcScaleRange Class
Represents a custom range for a circular gauge.
Namespace: DevExpress.XtraGauges.Core.Model
Assembly: DevExpress.XtraGauges.v18.1.Core.dll
Declaration
Remarks
See Scales to learn more.
Example
The following code shows how to add custom ranges to a circular gauge.
Two ranges are added to the ArcScale.Ranges collection. These are used to mark values from 20 to 70 in green, and values between 70 and 80 in red. The result is displayed below:
using DevExpress.XtraGauges.Core.Model;
using DevExpress.XtraGauges.Core.Drawing;
arcScaleComponent1.BeginUpdate();
// Range 1
ArcScaleRange range1 = new ArcScaleRange();
range1.AppearanceRange.ContentBrush = new SolidBrushObject(Color.Red);
range1.StartValue = 70;
range1.EndValue = 80;
// Range 2
ArcScaleRange range2 = new ArcScaleRange();
range2.AppearanceRange.ContentBrush = new SolidBrushObject(Color.FromArgb(0,192,0));
range2.StartValue = 20;
range2.EndValue = 70;
// Add the ranges to the scale.
arcScaleComponent1.Ranges.AddRange(new ArcScaleRange[] {range1, range2});
arcScaleComponent1.EndUpdate();
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ArcScaleRange class.
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.