BoxBuilder.Align(BoxAlign) Method
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
public BoxBuilder Align(
BoxAlign value
)
Parameters
Name | Type | Description |
---|---|---|
value | BoxAlign | The option value. |
Returns
Type | Description |
---|---|
BoxBuilder | 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