TX Text Control .NET Server

ResetContents Method

Method|Introduced in 23.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Deletes the entire contents of the control.

Syntax

public void ResetContents();

Examples

ResetContents is not exposed by the current ASP.NET Core editor helper. The following example uses LoadText in the current server-side setup instead.

var result = textControl.LoadText(@"App_Data\document.docx", TXTextControl.Web.StreamType.PlainAnsiText);
Console.WriteLine(result);