property Layer.OffsetYValid as String
Validates the y-offset value of the layer

TypeDescription
String A String expression that validates the y-offset value of the layer. The result of evaluating the expression indicates the newly OffsetY 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 OffsetY property always matches OffsetYValid expression. In other words, the OffsetYValid validates the y-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(exDefLayerOffsetYValid) property to specify the default value for the OffsetYValid 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 OffsetYValid 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: