TX Text Control .NET for WPF

ResetContents Method

Method|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Deletes the entire contents of a Text Control.

Syntax

public void ResetContents();

Examples

The following example restores the contents setting on the text control to its default. The created object is then available to the surrounding document workflow.

textControl.ResetContents();
Console.WriteLine("Text Control is ready for use.");