BoxBuilder.Align(BoxAlign) Method
In This Article
Specifies how UI component items are aligned along the main direction. Mirrors the client-side align option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public BoxBuilder Align(
BoxAlign value
)
#Parameters
Name | Type | Description |
---|---|---|
value | Box |
The option value. |
#Returns
Type | Description |
---|---|
Box |
A reference to this instance after the method is called. |
#Remarks
Use the following notation to set the option’s value:
@(Html.DevExtreme().Box()
.Align(BoxAlign.Center)
)
See Also