TX Text Control .NET Server

DocumentTargets Property

Property|Introduced in 12.0
Namespace
TXTextControl
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 a collection of all targets in the document. The property value is an object of the type DocumentTargetCollection.

Syntax

public DocumentTargetCollection DocumentTargets { get; }

Examples

The following example iterates through the document targets collection and processes each document target.

foreach (DocumentTarget documentTarget in textControl.DocumentTargets)
{
    documentTarget.Name = "CustomerName";
}

Limitations

Runtime only.

Read only.