TX Text Control .NET for WPF

ContainsInputPosition Property

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

Description

Returns true, if the Textfield contains the current text input position.

Syntax

public bool ContainsInputPosition { get; }

Examples

The following example inserts a Word-compatible text field into a template by using TextField.ContainsInputPosition.

TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);

if (textField.ContainsInputPosition)
{
    Console.WriteLine("Text Field is ready for this operation.");
}

Limitations

Read only.