PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1MultiDocumentItemCollection Class / Insert Method / Insert(Int32,C1PrintDocument) Method
The zero-based index at which the new item should be inserted.
The document that is associated with the new item.

In This Topic
    Insert(Int32,C1PrintDocument) Method
    In This Topic
    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 C1MultiDocumentItem.SetDocument for details.

    Syntax
    'Declaration
     
    Public Overloads Function Insert( _
       ByVal index As Integer, _
       ByVal document As C1PrintDocument _
    ) As C1MultiDocumentItem
    public C1MultiDocumentItem Insert( 
       int index,
       C1PrintDocument document
    )

    Parameters

    index
    The zero-based index at which the new item should be inserted.
    document
    The document that is associated with the new item.

    Return Value

    The newly created item.
    See Also