Back to Devexpress

LinearScaleMarker.ShapeOffset Property

corelibraries-devexpress-dot-xtragauges-dot-core-dot-model-dot-linearscalemarker-a2269d8b.md

latest2.8 KB
Original Source

LinearScaleMarker.ShapeOffset Property

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

Declaration

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

Property Value

TypeDefaultDescription
Single0

The offset of the marker’s center from the scale axis, in relative coordinates.

|

Remarks

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

csharp
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

vb
marker.Shader = New StyleShader() With {.StyleColor1 = Color.Blue, .StyleColor2 = Color.Blue}
marker.ShapeOffset = -20.0F
marker.Value = value

See Also

LinearScaleMarker Class

LinearScaleMarker Members

DevExpress.XtraGauges.Core.Model Namespace