HighlightMode Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets a value indicating when the text field is highlighted.
Syntax
public HighlightMode HighlightMode { get; set; }Public Property HighlightMode As HighlightModeMembers
| Value | Description |
|---|---|
| Auto | This value is not used for text fields. |
| Activated | The text field is only highlighted, when it contains the current text input position and when the control has the input focus. |
| Always | The text field is always highlighted. |
| Never | The text field is never highlighted. |
Examples
The following example inserts a Word-compatible text field into a template by using TextField.HighlightMode.
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);
textField.HighlightMode = HighlightMode.Never;
Console.WriteLine($"Highlight Mode used by Text Field: {textField.HighlightMode}");Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)
textField.HighlightMode = HighlightMode.Never
Console.WriteLine($"Highlight Mode used by Text Field: {textField.HighlightMode}")Remarks
The property's default value is HighlightMode.Never.