ImageGear for Java
insert Method
Position where to insert a new format.
New format to be inserted.

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.

Inserts a new format to the list of formats at the specified position.
Syntax
public void insert( 
   int index,
   IImGearFormat newFormat
)

Parameters

index
Position where to insert a new format.
newFormat
New format to be inserted.

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

Reference

ImGearFileFilters Class
ImGearFileFilters Members

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback