TX Text Control .NET Server

Render Method

Method|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Renders the extension's HTML code into the page output.

Syntax

Render()

Renders the extension's HTML code into the page output.

Only for .NET 8.

public HtmlString Render();

Render()

Only for .NET Framework 4.5.

public IHtmlString Render();

Return Value

The extension's HTML code as an object implementing the System.Web.IHtmlString instance.

Examples

The following example uses ControlBase.Render in a document-processing workflow.

var result = controlBase.Render();
Console.WriteLine(result);