TX Text Control .NET for WPF

ShowActivated Property

PropertyDeprecated
Obsolete
The assembly marks this as obsolete.
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Obsolete. Specifies whether a text field toggles its background to gray, if the current input position is in the field. The default setting of this property is false. This property is obsolete and has been superseded by the HighlightColor and HighlightMode properties.

Syntax

[Obsolete]
public bool ShowActivated { get; set; }

Examples

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

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

textField.ShowActivated = true;
if (textField.ShowActivated)
{
    Console.WriteLine("Text Field: Show Activated is enabled.");
}

See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.