Render Method
- Namespace
TXTextControl.Web. MVC. DocumentViewer
- Package
TXTextControl.asWeb. DocumentViewer TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. MVC. DocumentViewer. dll
- Also in
TXTextControl.asWeb. DocumentViewer. Classic 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();Public Function Render() As IHtmlContentRender()
Only for .NET Framework 4.5.
public IHtmlString Render();Public Function Render() As IHtmlStringExamples
The following example uses ControlBase.Render in a document-processing workflow.
var result = controlBase.Render();
Console.WriteLine(result);Dim result = controlBase.Render()
Console.WriteLine(result)