Skip to main content

PositionConfigBuilder.Offset(Double, Double) Method

Mirrors the client-side offset option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public PositionConfigBuilder Offset(
    double h,
    double v
)

Parameters

Name Type Description
h Double

A horizontal offset.

v Double

A vertical offset.

Returns

Type Description
PositionConfigBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().Popover()
    .Position(position => position
        .Offset(50, -25)
    )
)
See Also