LinearScaleBackgroundLayer.ScaleStartPos Property
Positions the current layer relative to the scale’s starting point.
Namespace: DevExpress.XtraGauges.Core.Model
Assembly: DevExpress.XtraGauges.v24.2.Core.dll
NuGet Package: DevExpress.Gauges.Core
#Declaration
#Property Value
Type | Description |
---|---|
DevExpress. |
A Point |
#Remarks
Changing the ScaleStartPos property transforms (shifts, rotates and zooms) the current layer relative to the scale’s starting point (LinearScale.StartPoint).
The X and Y attributes of the ScaleStartPos object represent values in the range [0, 1], where 0 corresponds to the left/top edge, and 1 - to the right/bottom edge of the layer. If the ScaleStartPos property is set to (0.5, 0.5), the layer will be shifted so that the scale’s starting point is positioned at the center of the layer. If the ScaleStartPos property is set to (0,0), the scale’s starting point will be displayed at the left-top corner of the layer. If the ScaleStartPos property is set to (1,1), the scale’s starting point will be displayed at the right-bottom corner of the layer. Note that when changing the ScaleStartPos property, the layer is actually transformed relative to the scale, to ensure that the scale’s starting point is at the required position.