corelibraries-devexpress-dot-xtragauges-dot-core-dot-model-dot-baserange-c1f6c594.md
Gets or sets the offset of the range’s most distant edge from the scale arc.
Namespace : DevExpress.XtraGauges.Core.Model
Assembly : DevExpress.XtraGauges.v25.2.Core.dll
NuGet Package : DevExpress.Gauges.Core
[DefaultValue(-25F)]
public float ShapeOffset { get; set; }
<DefaultValue(-25F)>
Public Property ShapeOffset As Single
| Type | Default | Description |
|---|---|---|
| Single | -25 |
The offset of the range’s most distant edge from the scale arc, in relative coordinates.
|
The ShapeOffset property’s values are measured from the scale arc, in relative coordinates. The value of 0 means that the range object is positioned directly on the arc scale. If a negative value is assigned, the range object is moved inwards. If a positive value is assigned, the range object is moved outwards.
See Coordinate System, to learn about relative coordinates.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShapeOffset property.
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.
web-forms-dashboard-gauge-ranges/CS/Default.aspx.cs#L60
var range = new DevExpress.XtraGauges.Core.Model.ArcScaleRange();
range.ShapeOffset = -10;
range.StartValue = customRange.startValue;
See Also