Skip to main content
A newer version of this page is available. .
Tab

BackgroundImage.Repeat Property

Gets or sets a value that specifies how the background image fills the available space.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(BackgroundImageRepeat.Repeat)]
public BackgroundImageRepeat Repeat { get; set; }

Property Value

Type Default Description
BackgroundImageRepeat **Repeat**

One of the BackgroundImageRepeat enumeration values.

Available values:

Name Description
Repeat

Repeats the image horizontally and vertically in the background.

NoRepeat

Displays the image only once and does not repeat it. The image’s position can be specified via the BackgroundImage.HorizontalPosition and BackgroundImage.VerticalPosition properties.

RepeatX

Repeats the image horizontally in the background. The vertical position of the images can be specified via the BackgroundImage.VerticalPosition property.

RepeatY

Repeats the image vertically in the background. The horizontal position of the images can be specified via the BackgroundImage.HorizontalPosition property.

Remarks

Use the Repeat property to control how the background image set via the BackgroundImage.ImageUrl property fills the available space of the corresponding object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Repeat property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also