Skip to main content
A newer version of this page is available. .

LinearScaleBackgroundLayer.ScaleStartPos Property

Positions the current layer relative to the scale’s starting point.

Namespace: DevExpress.XtraGauges.Core.Model

Assembly: DevExpress.XtraGauges.v19.1.Core.dll

Declaration

[XtraSerializableProperty]
public PointF2D ScaleStartPos { get; set; }

Property Value

Type Description
DevExpress.XtraGauges.Core.Base.PointF2D

A PointF2D structure that specifies the position of the scale’s starting point relative to the layer’s left-top corner, in fractions.

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.

See Also