Skip to main content

RangeSelectorBackgroundImageBuilder.Location(BackgroundImageLocation) Method

Specifies a location for the image in the background of a range selector. Mirrors the client-side location option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public RangeSelectorBackgroundImageBuilder Location(
    BackgroundImageLocation value
)

Parameters

Name Type Description
value BackgroundImageLocation

The option value.

Returns

Type Description
RangeSelectorBackgroundImageBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().RangeSelector()
    .Background(background => background
        .Image(image => image
            .Location(BackgroundImageLocation.Center)
        )
    )
)
See Also