Gets a particular document target from the collection.

GetItem()

public DocumentTarget GetItem();
Public Function GetItem() As DocumentTarget

GetItem(Int)

public DocumentTarget GetItem(int id);
Public Function GetItem(ByVal id As Integer) As DocumentTarget

GetItem(String)

public DocumentTarget GetItem(string targetName);
Public Function GetItem(ByVal targetName As String) As DocumentTarget

Parameters

Parameter Description
id Specifies the document target's identifier. The method returns null, if a document target with the specified identifier does not exist. If there are more than target with this id in the document, the first target in the document's text is returned.
targetName Specifies the document target's target name. The method returns null, if a document target with this target name does not exist. If there are more than target with this name in the document, the first target in the document's text is returned.