ArcScaleBackgroundLayer.ScaleCenterPos Property

Gets or sets the position of the scale’s center relative to the layer’s left-top corner.

Namespace: DevExpress.XtraGauges.Core.Model

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

Declaration

public PointF2D ScaleCenterPos { get; set; }

Property Value

Type Description
DevExpress.XtraGauges.Core.Base.PointF2D

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

Remarks

Changing the ScaleCenterPos property shifts the current layer relative to the scale’s center (ArcScale.Center).

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

See Also