ZennoLab Assemblies Documentation
Remove Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > DocumentCollection Class : Remove Method
index

Type: System.Int32

The zero-based index of the document to remove.

Glossary Item Box

Removes the element at the specified index of the DocumentCollection.

Syntax

C# 
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
C#Copy Code
// get all documents from page
DocumentCollection docCol = tab.AllDocuments;
 
// remove the last document
docCol.Remove(docCol.Count-1);
PHPCopy Code
// 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

See Also

© 2013 All Rights Reserved.