Back to Devexpress

LinearScaleBackgroundLayer.ScaleEndPos Property

corelibraries-devexpress-dot-xtragauges-dot-core-dot-model-dot-linearscalebackgroundlayer-271f5ee7.md

latest2.4 KB
Original Source

LinearScaleBackgroundLayer.ScaleEndPos Property

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

Namespace : DevExpress.XtraGauges.Core.Model

Assembly : DevExpress.XtraGauges.v25.2.Core.dll

NuGet Package : DevExpress.Gauges.Core

Declaration

csharp
public PointF2D ScaleEndPos { get; set; }
vb
Public Property ScaleEndPos As PointF2D

Property Value

TypeDescription
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

ScaleStartPos

LinearScaleBackgroundLayer Class

LinearScaleBackgroundLayer Members

DevExpress.XtraGauges.Core.Model Namespace