ImageGear v26.5 - Updated March 3, 2025
ImageGear.Core Assembly / ImageGear.Formats Namespace / ImGearFileFilters Class / Insert Method
Position where to insert a new format.
New format to be inserted.




In This Topic
Insert Method (ImGearFileFilters)
In This Topic
Inserts a new format to the list of formats at the specified position.
Syntax
'Declaration
 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal newFormat As IImGearFormat _
) 
 
'Usage
 
Dim instance As ImGearFileFilters
Dim index As Integer
Dim newFormat As IImGearFormat
 
instance.Insert(index, newFormat)

Parameters

index
Position where to insert a new format.
newFormat
New format to be inserted.
Remarks
Use this method instead of Add if you want to control the detection process. If the format with the same ID exists in the list, an exception is thrown. You can use the Contains method to check if a format is already added, and call Remove or RemoveAt methods to remove a format.
See Also