ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Formats Namespace / ImGearFileFilters Class / InsertAfter Method
ID of the format after which to insert a new format.
New format to be inserted.




In This Topic
    InsertAfter Method
    In This Topic
    Inserts a new format to the list of formats after the specified format.
    Syntax
    'Declaration
     
    Public Sub InsertAfter( _
       ByVal formatId As ImGearFormats, _
       ByVal newFormat As IImGearFormat _
    ) 
    'Usage
     
    Dim instance As ImGearFileFilters
    Dim formatId As ImGearFormats
    Dim newFormat As IImGearFormat
     
    instance.InsertAfter(formatId, newFormat)
    public void InsertAfter( 
       ImGearFormats formatId,
       IImGearFormat newFormat
    )
    public: void InsertAfter( 
       ImGearFormats formatId,
       IImGearFormat* newFormat
    ) 
    public:
    void InsertAfter( 
       ImGearFormats formatId,
       IImGearFormat^ newFormat
    ) 

    Parameters

    formatId
    ID of the format after which to insert a new format.
    newFormat
    New format to be inserted.
    Remarks
    Use this method if you want a new format to be called after a particular format during format detection. If a format with the same ID as the new one exists in the list, an exception is thrown. You can use Contains method to check if a format is already added, and call Remove or RemoveAt methods to remove a format.
    See Also