VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging Namespace / ImageCollection Class / Insert Methods / Insert(Int32,Stream,Boolean,Int32) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    Insert(Int32,Stream,Boolean,Int32) Method (ImageCollection)
    In This Topic
    Inserts an element into the ImageCollection at the specified index.
    Syntax
    'Declaration
    
    Public Overloads Sub Insert( _
    ByVal index
    The zero-based index at which the new elements should be inserted.
    As System.Int32, _
    ByVal stream
    A stream that contains an image file.
    As System.IO.Stream, _
    ByVal closeStreamAfterUse
    A value indicating whether the stream must be closed after use.
    As Boolean, _
    ByVal pageIndex
    The page index in multipage image image to insert.
    As System.Int32 _
    )
    public void Insert(
    System.Int32 index,
    System.IO.Stream stream,
    bool closeStreamAfterUse,
    System.Int32 pageIndex
    )
    public: void Insert(
    System.Int32 index,
    System.IO.Stream* stream,
    bool closeStreamAfterUse,
    System.Int32 pageIndex
    )
    public:
    void Insert(
    System.Int32 index,
    System.IO.Stream^ stream,
    bool closeStreamAfterUse,
    System.Int32 pageIndex
    )

    Parameters

    index
    The zero-based index at which the new elements should be inserted.
    stream
    A stream that contains an image file.
    closeStreamAfterUse
    A value indicating whether the stream must be closed after use.
    pageIndex
    The page index in multipage image image to insert.
    Exceptions
    ExceptionDescription
    Thrown if index is less than zero.
    Thrown if stream is null.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also