ResetContents Method
- 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();Public Sub 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);Dim result = textControl.LoadText("App_Data\document.docx", TXTextControl.Web.StreamType.PlainAnsiText)
Console.WriteLine(result)