Back to Devexpress

FormBuilder<T>.LabelLocation(FormLabelLocation) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-formbuilder-1-dot-labellocation-x28-devextreme-dot-aspnet-dot-mvc-dot-formlabellocation-x29.md

latest1.4 KB
Original Source

FormBuilder<T>.LabelLocation(FormLabelLocation) Method

Specifies the location of a label against the editor. Applies only to labels outside their editors (see labelMode). Mirrors the client-side labelLocation option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public FormBuilder<T> LabelLocation(
    FormLabelLocation value
)

Parameters

NameTypeDescription
valueFormLabelLocation

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()
    .LabelLocation(FormLabelLocation.Left)
)

See Also

FormBuilder<T> Class

FormBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace