Back to Devexpress

BaseRange.ShapeOffset Property

corelibraries-devexpress-dot-xtragauges-dot-core-dot-model-dot-baserange-c1f6c594.md

latest2.6 KB
Original Source

BaseRange.ShapeOffset Property

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

Declaration

csharp
[DefaultValue(-25F)]
public float ShapeOffset { get; set; }
vb
<DefaultValue(-25F)>
Public Property ShapeOffset As Single

Property Value

TypeDefaultDescription
Single-25

The offset of the range’s most distant edge from the scale arc, in relative coordinates.

|

Remarks

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

csharp
var range = new DevExpress.XtraGauges.Core.Model.ArcScaleRange();
range.ShapeOffset = -10;
range.StartValue = customRange.startValue;

See Also

Coordinate System

BaseRange Class

BaseRange Members

DevExpress.XtraGauges.Core.Model Namespace