robot_2Generated
code_blocksInput

Description

The RepeatY field is a member of the BackgroundRepeat enumeration within the Sandbox.UI namespace. It specifies that the background image should be repeated along the Y axis. This is useful when you want the background image to tile vertically across the element.

Usage

To use the RepeatY field, you can assign it to a UI element's background repeat property to ensure the background image repeats vertically. This is typically used in styling UI components where a vertical tiling effect is desired.

Example

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