PositionConfigBuilder.My(HorizontalAlignment, VerticalAlignment) Method
In This Article
Mirrors the client-side my option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public PositionConfigBuilder My(
HorizontalAlignment h,
VerticalAlignment v
)
#Parameters
Name | Type | Description |
---|---|---|
h | Horizontal |
A position in the horizontal direction (left, right, or center alignment). |
v | Vertical |
A position in the vertical direction (top, bottom, or center alignment). |
#Returns
Type | Description |
---|---|
Position |
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