Back to Devexpress

HtmlEditorBuilder.Content(RazorBlock) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-htmleditorbuilder-dot-content-x28-devextreme-dot-aspnet-dot-mvc-dot-razorblock-x29.md

latest1.3 KB
Original Source

HtmlEditorBuilder.Content(RazorBlock) Method

Specifies content for an HtmlEditor control.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public HtmlEditorBuilder Content(
    RazorBlock content
)

Parameters

NameTypeDescription
contentRazorBlock

The Razor @<text> block that specifies content.

|

Returns

TypeDescription
HtmlEditorBuilder

A reference to this instance after the method is called.

|

Remarks

Refer to Use Markup to Specify Content for more information.

cshtml
@(Html.DevExtreme().HtmlEditor()
    .Content(@<text>
        <p>HtmlEditor content</p>
    </text>)
)

See Also

HtmlEditorBuilder Class

HtmlEditorBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace