robot_2Generated
code_blocksInput

Description

The RepeatX field is a member of the BackgroundRepeat enumeration within the Sandbox.UI namespace. It specifies that the background image should be repeated along the X axis only. This is useful when you want the image to tile horizontally across the element's background.

Usage

Use BackgroundRepeat.RepeatX when setting the background-repeat property in your UI components to ensure that the background image repeats horizontally.

Example

// Example of using BackgroundRepeat.RepeatX in a UI component
var panel = new Panel();
panel.Style.BackgroundImage = "url('path/to/image.png')";
panel.Style.BackgroundRepeat = BackgroundRepeat.RepeatX;