DocumentTargets Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a collection of all targets in a text frame. The property value is an object of the type DocumentTargetCollection.
Syntax
public DocumentTargetCollection DocumentTargets { get; }Public ReadOnly Property DocumentTargets As DocumentTargetCollectionExamples
The following example applies bold formatting through the text frame's selection by using TextFrame.DocumentTargets.
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;
foreach (DocumentTarget documentTarget in textFrame.DocumentTargets)
{
documentTarget.Name = "CustomerName";
}Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection
For Each documentTarget As DocumentTarget In textFrame.DocumentTargets
documentTarget.Name = "CustomerName"
NextLimitations
Read only.