Back to Devexpress

SelectBoxBuilder.StylingMode(EditorStylingMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-selectboxbuilder-dot-stylingmode-x28-devextreme-dot-aspnet-dot-mvc-dot-editorstylingmode-x29.md

latest1.3 KB
Original Source

SelectBoxBuilder.StylingMode(EditorStylingMode) Method

Specifies how the UI component's text field is styled. Mirrors the client-side stylingMode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public SelectBoxBuilder StylingMode(
    EditorStylingMode value
)

Parameters

NameTypeDescription
valueEditorStylingMode

The option value.

|

Returns

TypeDescription
SelectBoxBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().SelectBox()
    .StylingMode(EditorStylingMode.Filled)
)

See Also

SelectBoxBuilder Class

SelectBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace