Back to Devexpress

HtmlEditorBuilder.Content(String) Method

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

latest1.3 KB
Original Source

HtmlEditorBuilder.Content(String) Method

Specifies content for a HtmlEditor control.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public HtmlEditorBuilder Content(
    string content
)

Parameters

NameTypeDescription
contentString

A string 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("<p>HtmlEditor content</p>")
)

See Also

HtmlEditorBuilder Class

HtmlEditorBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace