property FileTypes.Item (Index as Long) as FileType

Retrieves a FileType object given its index into collection.

TypeDescription
Index as Long A long expression that indicates the FileType's index.
FileType A FileType object being retrieved.

Use the Item property to retrieve a specified FileType object. The Count property counts the element in the collection. Use the Add method to add new FileType objects to the control. Use the Remove method to remove a specified FileType object. Use the FileTypes property to access the FileType objects collection. Use the Pattern property to specify the group's pattern.

The following VB sample enumerates the FileType objects:

With ExFileView1.FileTypes
    Dim i As Long
    For i = 0 To .Count - 1
        Debug.Print .Item(i).Pattern
    Next
End With

The following C++ sample enumerates the FileType objects:

CFileTypes fileTypes = m_fileview.GetFileTypes();
for ( long i = 0; i < fileTypes.GetCount(); i++ )
	OutputDebugString( fileTypes.GetItem( i ).GetPattern() );

The following VB.NET sample enumerates the FileType objects:

With AxExFileView1.FileTypes
    Dim i As Integer
    For i = 0 To .Count - 1
        Debug.WriteLine(.Item(i).Pattern())
    Next
End With

The following C# sample enumerates the FileType objects:

EXFILEVIEWLib.FileTypes files = axExFileView1.FileTypes;
for (int i = 0; i < files.Count; i++)
	System.Diagnostics.Debug.WriteLine(files[i].Pattern);

The following VFP sample enumerates the FileType objects:

With thisform.ExFileView1.FileTypes
	local i
    For i = 0 To .Count - 1
        wait window nowait .Item(i).Pattern
    Next	
EndWith