Skip to main content

PositionConfigBuilder.My(HorizontalAlignment, VerticalAlignment) Method

Mirrors the client-side my option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public PositionConfigBuilder My(
    HorizontalAlignment h,
    VerticalAlignment v
)

Parameters

Name Type Description
h HorizontalAlignment

A position in the horizontal direction (left, right, or center alignment).

v VerticalAlignment

A position in the vertical direction (top, bottom, or center alignment).

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
        .My(HorizontalAlignment.Center, VerticalAlignment.Center)
    )
)
See Also