TRVBackgroundProperties.HorizontalOffset, HorizontalOffsetKind

<< Click to display table of contents >>

TRVBackgroundProperties.HorizontalOffset, HorizontalOffsetKind

Horizontal offset of the background image relative to the position defined by HorizontalAlignment.

property HorizontalOffsetKind: TRVDualSignedLengthKind;
property HorizontalOffset: TRVDualSignedLength;

These properties are ignored if HorizontalRepeat = rvbrpSpace.

The offset direction depends on HorizontalAlignment:

left: positive values shift the image to the right, negative values shift it to the left.

right: positive values shift the image to the left, negative values shift it to the right.

center: offset is not applied, these properties are ignored.

When the offset is specified as a percentage, the percentage is calculated based on the background area size minus the image size. If the image size is larger, the value becomes negative, and the image is shifted in the opposite direction.

Default value

rvdslkAbsolute, 0