property Files.Get (Pattern as String) as Files

Retrieves a new collection that contain a collection of files that match the pattern.

TypeDescription
Pattern as String A string expression that defines the pattern, like "*.bmp *.jpg"
Files A Files collection that contains File objects that match the pattern.

Use the Get property to selects only File objects that match a pattern. Use the Get property to get files and folder being browsed. Use the BrowseFolderPath property to specify the path to the browsed folder. Use the FullName property to retrieve the full name of the file or folder. Use the Name property to retrieve the name of the file or folder. Use the Folder property to specify whether the File object hosts a file or a folder.

The following VB sample displays BMP, GIF and JPG files as they are displayed:

Dim i As Long
With ExFileView1.Get(VisibleItems).Get("*.bmp *.gif *.jpg")
    For i = 0 To .Count - 1
        Debug.Print .Item(i).FullName
    Next
End With

The following C++ sample displays BMP, GIF and JPG files as they are displayed:

CFiles files = m_fileview.GetGet( 3 /*VisibleItems*/ ).GetGet( "*.bmp *.gif *.jpg" );
for ( long i = 0; i < files.GetCount(); i++ )
	OutputDebugString( files.GetItem(COleVariant( i ) ).GetFullName() );

The following VB.NET sample displays BMP, GIF and JPG files as they are displayed:

With AxExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.VisibleItems).Get("*.bmp *.gif *.jpg")
    Dim i As Integer
    For i = 0 To .Count - 1
        Debug.WriteLine(.Item(i).FullName)
    Next
End With

The following C# sample displays BMP, GIF and JPG files as they are displayed:

EXFILEVIEWLib.Files files = axExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.AllItems).get_Get("*.bmp *.gif *.jpg");
for (int i = 0; i < files.Count; i++)
	System.Diagnostics.Debug.WriteLine(files[i].FullName);

The following VFP sample displays BMP, GIF and JPG files as they are displayed:

local i
With thisform.ExFileView1.Get( 3 ).Get("*.bmp *.gif *.jpg") && VisibleItems
    For i = 0 To .Count - 1
        wait window nowait .Item(i).FullName
    Next
EndWith