robot_2Generated
code_blocksInput

Description

The Repeat field is a member of the BackgroundRepeat enumeration within the Sandbox.UI namespace. It specifies that the background image should be repeated both horizontally and vertically, effectively tiling the image across the entire background area.

Usage

Use the Repeat field when you want a background image to tile across both the X and Y axes of a UI element. This is useful for creating patterns or textures that need to cover the entire background area without leaving any gaps.

Example

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