robot_2Generated
code_blocksInput

Description

The NoRepeat field is a member of the BackgroundRepeat enumeration within the Sandbox.UI namespace. It specifies that the background image should not be repeated. This is equivalent to the CSS property background-repeat: no-repeat;.

Usage

Use BackgroundRepeat.NoRepeat when you want a background image to appear only once, without any repetition, in a UI element. This is useful for scenarios where a single instance of the image is sufficient or when you want to avoid tiling effects.

Example

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