Creates a C1MultiDocumentItem, associates it with the specified document, and inserts it into the current collection at the specified index.

Note that the passed document reference is not stored in the created item, see SetDocument(Object) for details.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public C1MultiDocumentItem Insert(
	int index,
	C1PrintDocument document
)
Visual Basic
Public Function Insert ( _
	index As Integer, _
	document As C1PrintDocument _
) As C1MultiDocumentItem

Parameters

index
Type: System..::..Int32
The zero-based index at which the new item should be inserted.
document
Type: C1.C1Preview..::..C1PrintDocument
The document that is associated with the new item.

Return Value

The newly created item.

See Also