Skip to main content

BoxBuilder.CrossAlign(BoxCrossAlign) Method

Specifies how UI component items are aligned cross-wise. Mirrors the client-side crossAlign option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public BoxBuilder CrossAlign(
    BoxCrossAlign value
)

Parameters

Name Type Description
value BoxCrossAlign

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()
    .CrossAlign(BoxCrossAlign.Center)
)
See Also