property Layer.OffsetXValid as String
Validates the x-offset value of the layer

TypeDescription
String A String expression that validates the x-offset value of the layer. The result of evaluating the expression indicates the newly OffsetX value.
By default, the OffsetXValid / OffsetYValid property is empty. The OffsetXValid / OffsetYValid property has no effect if it is empty, missing or invalid. If the OffsetXValid / OffsetYValid property is valid expression, the value of OffsetX property always matches OffsetXValid expression. In other words, the OffsetXValid validates the x-position of the layer. For instance, you can use the OffsetXValid / OffsetYValid expression to specify a range of values to allow the OffsetX / OffsetY properties. Use the DefaultLayer(exDefLayerOffsetXValid) property to specify the default value for the OffsetXValid property, before adding any layer.

The OffsetX / OffsetY property specifies the (x,y)-position of the layer, relative to the upper-left corner of the control. The Value property associates a value to a layer. The ValueToOffsetX property specifies the expression to convert the value to x-offset. The ValueToOffsetY property specifies the expression to convert the value to y-offset. For instance, you can use the OffsetYValid property on "0", and so no vertical movement is allowed for the current layer. Use the DefaultLayer(exDefLayerOffsetX) property to specify the default value for the OffsetX, before adding any layer. The Change event occurs when the layer's OffsetX property is changed. The DragStart / Drag / DragEnd events notify your application when a layer is dragged.

For instance:

The OffsetXValid property supports the following keywords:

Also, this property supports all constants, operators and functions defined here.

The following picture shows the position/size properties of the Layer, relative to the view / control:

The following properties determines the position / size / offset of the layer:

You can use the following properties to offset the view ( background + foreground ) inside the layer:

The following properties can be used to move / resize the picture on the layer's background: