Skip to main content

DropDownBoxBuilder.Content(RazorBlock) Method

Specifies content for a DropDownBox control.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DropDownBoxBuilder Content(
    RazorBlock content
)

Parameters

Name Type Description
content RazorBlock

The Razor @<text> block that specifies content.

Returns

Type Description
DropDownBoxBuilder

A reference to this instance after the method is called.

Remarks

Refer to Use Markup to Specify Content for more information.

@(Html.DevExtreme().DropDownBox()
    .Content(@<text>
        <p>DropDownBox content</p>
    </text>)
)
See Also