aspnet-devexpress-dot-web-dot-backgroundimage-3a49c354.md
Gets or sets a value that specifies how the background image fills the available space.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(BackgroundImageRepeat.Repeat)]
public BackgroundImageRepeat Repeat { get; set; }
<DefaultValue(BackgroundImageRepeat.Repeat)>
Public Property Repeat As BackgroundImageRepeat
| 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.
|
Use the Repeat property to control how the background image set via the BackgroundImage.ImageUrl property fills the available space of the corresponding object.
See Also