ZennoLab Assemblies Documentation
Remove Method (DocumentCollection)
Example 
ZennoLab.CommandCenter Namespace > DocumentCollection Class : Remove Method

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
index 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: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

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