TX Text Control .NET for WPF

Clear 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

Clears the selected text or the character right from the current input position from the Text Control.

Syntax

public void Clear();

Examples

The following example clears the text control. The created object is then available to the surrounding document workflow.

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