TX Text Control .NET for Windows Forms Documentation

DocumentTargetCollection Class

An instance of the DocumentTargetCollection class contains all targets in a Text Control document represented through objects of the type DocumentTarget. An instance of this class can only be obtained with the TextControl.DocumentTargets property. The DocumentTargetCollection class implements the IEnumerable and the ICollection interface. For more information see the technical article Text Fields and Hypertext Links.

Syntax

[C#] public sealed class DocumentTargetCollection: ICollection, IEnumerable
[Visual Basic] Public NotInheritable Class DocumentTargetCollection Implements ICollection Implements IEnumerable

Properties

PropertyDescription
CanAddGets a value indicating whether a new document target can be inserted at the current input position.
CountGets the number of elements contained in the collection.

Methods

MethodDescription
AddInserts a new target at the current input position.
ClearRemoves all document targets from a Text Control document.
CopyToCopies the elements of the collection to an array, starting at a particular index.
GetEnumeratorReturns an enumerator that can be used to iterate through the collection.
GetItemGets a particular document target from the collection.
RemoveRemoves a target from a Text Control document.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now