TX Text Control .NET Server

SelectObjects Property

Property|Introduced in 25.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Gets or sets a value controlling the selection of objects which are inserted behind the text. When the property is set to true, a mouse click selects the object behind the text. Otherwise, when this property is set to false, text in front of the object can be selected.

Syntax

public bool SelectObjects { get; set; }

Examples

The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.SelectObjects.

Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.SelectObjects = true;
if (textViewGenerator.SelectObjects)
{
    Console.WriteLine("Text View Generator: Select Objects is enabled.");
}