ZennoLab Assemblies Documentation
Remove Method (DocumentCollection)
Example 

Type: System.Int32

The zero-based index of the document to remove.

Removes the element at the specified index of the DocumentCollection.
Syntax
public void Remove( 
   int index
)

Parameters

index

Type: System.Int32

The zero-based index of the document to remove.

Exceptions
ExceptionDescription
ArgumentOutOfRangeExceptionindex is less than 0 or index is equal to or greater than Count.
Example
The following code shows the Remove method call
// get all documents from page
DocumentCollection docCol = tab.AllDocuments;
 
// remove the last document
docCol.Remove(docCol.Count-1);
// get all documents from page
$docCol = $tab->AllDocuments;
 
// remove the last document
$docCol->Remove($docCol->Count-1);
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

DocumentCollection Class
DocumentCollection Members
Add Method
AddRange Method
Insert Method
InsertRange Method

Send Feedback