Gets a collection of all targets in the main text of the document. The property value is an object of the type DocumentTargetCollection.

Introduced: X13.


public DocumentTargetCollection DocumentTargets { get; }
Public ReadOnly Property DocumentTargets() As DocumentTargetCollection


The following examples describes how to use the 'TXTextControl.MainText.DocumentTargets' property by storing it in a variable of the type 'TXTextControl.DocumentTargetCollection'.

TXTextControl.MainText mainText = textControl1.TextParts.GetMainText();
TXTextControl.DocumentTargetCollection myMainTextDocTargetsColl = mainText.DocumentTargets;
Dim mainText As TXTextControl.MainText = TextControl1.TextParts.GetMainText()
Dim myMainTextDocTargetsColl As TXTextControl.DocumentTargetCollection = mainText.DocumentTargets


Read only.