ArcScaleRange Class
Represents a custom range for a circular gauge.
Namespace: DevExpress.XtraGauges.Core.Model
Assembly: DevExpress.XtraGauges.v24.1.Core.dll
NuGet Package: DevExpress.Gauges.Core
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();
Inheritance
Object
BaseObject
DevExpress.XtraGauges.Core.Base.BaseObjectEx
BaseRange
ScaleRange
ArcScaleRange
See Also