Back to Devexpress

FormBuilder<T>.AlignItemLabels(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-formbuilder-1-dot-alignitemlabels-x28-system-dot-boolean-x29.md

latest1.3 KB
Original Source

FormBuilder<T>.AlignItemLabels(Boolean) Method

Specifies whether all item labels are aligned. Applies only to labels outside their editors (see labelMode). Mirrors the client-side alignItemLabels option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public FormBuilder<T> AlignItemLabels(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

The option value.

|

Returns

TypeDescription
FormBuilder<T>

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Form()
    .AlignItemLabels(true)
)

See Also

FormBuilder<T> Class

FormBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace