corelibraries-devexpress-dot-xtragauges-dot-core-dot-model-dot-linearscalemarker-a2269d8b.md
Gets or sets the offset of the marker’s center from the scale axis.
Namespace : DevExpress.XtraGauges.Core.Model
Assembly : DevExpress.XtraGauges.v25.2.Core.dll
NuGet Package : DevExpress.Gauges.Core
[DefaultValue(0F)]
public float ShapeOffset { get; set; }
<DefaultValue(0F)>
Public Property ShapeOffset As Single
| Type | Default | Description |
|---|---|---|
| Single | 0 |
The offset of the marker’s center from the scale axis, in relative coordinates.
|
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.
reporting-wpf-advanced-gauge-customization/CS/MainWindow.xaml.cs#L82
marker.Shader = new StyleShader() { StyleColor1 = Color.Blue, StyleColor2 = Color.Blue };
marker.ShapeOffset = -20.0f;
marker.Value = value;
reporting-wpf-advanced-gauge-customization/VB/MainWindow.xaml.vb#L69
marker.Shader = New StyleShader() With {.StyleColor1 = Color.Blue, .StyleColor2 = Color.Blue}
marker.ShapeOffset = -20.0F
marker.Value = value
See Also