VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging Namespace / ImageCollectionGdiExtensions Class / Insert(ImageCollection,Int32,Image,Boolean) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
Insert(ImageCollection,Int32,Image,Boolean) Method (ImageCollectionGdiExtensions)
In This Topic
Inserts an element(s) into the ImageCollection at the specified index.
Syntax
'Declaration

<ExtensionAttribute()>
Public Shared Sub Insert( _
ByVal imageCollection
The image collection.
As ImageCollection, _
ByVal index
The zero-based index at which the new elements should be inserted.
As System.Int32, _
ByVal image
The System.Drawing.Image object to be added to the collection.
As System.Drawing.Image, _
ByVal disposeImageAfterUse
A value indicating whether image must be disposed when this collection is disposed.
As Boolean _
)

Parameters

imageCollection
The image collection.
index
The zero-based index at which the new elements should be inserted.
image
The System.Drawing.Image object to be added to the collection.
disposeImageAfterUse
A value indicating whether image must be disposed when this collection is disposed.
Exceptions
ExceptionDescription
Thrown if index is less than zero.
Thrown if image is null.
Remarks

One VintasoftImage object will be added to this collection if image is not a multipage image.
Multiple VintasoftImage objects will be added to this collection if image is a multipage GIF/TIFF image.

Requirements

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

See Also