TX Text Control .NET Server

Render Method

Method
Namespace
TXTextControl.Web.MVC.DocumentViewer
Package
TXTextControl.Web.DocumentViewer as TXTextControl.Web.MVC.DocumentViewer.dll from nuget.org, the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.Web.DocumentViewer.Classic as TXTextControl.Web.MVC.DocumentViewer.dll

Description

Renders the control content to an HTML string.

Syntax

Render()

Renders the control content to an HTML string.

Only for .NET 8.

public IHtmlContent Render();

Render()

Only for .NET Framework 4.5.

public IHtmlString Render();

Examples

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

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