Skip to main content

LinearScaleBackgroundLayer.ScaleEndPos Property

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

Namespace: DevExpress.XtraGauges.Core.Model

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

NuGet Package: DevExpress.Gauges.Core

Declaration

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

Property Value

Type Description
DevExpress.XtraGauges.Core.Base.PointF2D

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

Remarks

Changing the ScaleEndPos property transforms (shifts, rotates and zooms) the current layer relative to the scale’s ending point (LinearScale.EndPoint).

The X and Y attributes of the ScaleEndPos 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 ScaleEndPos property is set to (0.5, 0.5), the layer will be shifted so that the scale’s ending point is positioned at the center of the layer. If the ScaleEndPos property is set to (0,0), the scale’s ending point will be displayed at the left-top corner of the layer. If the ScaleEndPos property is set to (1,1), the scale’s ending point will be displayed at the right-bottom corner of the layer. Note that when changing the ScaleEndPos property, the layer is actually transformed relative to the scale, to ensure that the scale’s ending point is at the required position.

See Also