Name | Value | Description | |||
SelItems | 0 | Gets the collection of selected items. | |||
AllItems | 1 | Gets the entire collection of items. | |||
CheckItems | 2 | Gets the checked items. | |||
VisibleItems | 3 | Gets the visible items as they are listed. |
The following VB sample displays the list of files as they are displayed:
With ExFileView1.Get(VisibleItems) For i = 0 To .Count - 1 With .Item(i) Debug.Print .Name End With Next End With
The following C++ sample displays the list of files as they are displayed:
CFiles files = m_fileview.GetGet( 3 /*VisibleItems*/ ); for ( long i = 0; i < files.GetCount(); i++ ) OutputDebugString( files.GetItem( COleVariant( i ) ).GetName() );
The following VB.NET sample displays the list of files as they are displayed:
With AxExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.VisibleItems) Dim i As Integer For i = 0 To .Count - 1 With .Item(i) Debug.WriteLine(.Name()) End With Next End With
The following C# sample displays the list of files as they are displayed:
EXFILEVIEWLib.Files files = axExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.VisibleItems); for (int i = 0; i < files.Count; i++) { EXFILEVIEWLib.File file = files[i]; System.Diagnostics.Debug.WriteLine(file.Name); }
The following VFP sample displays the list of files as they are displayed:
With thisform.ExFileView1.Get(3) && VisibleItems For i = 0 To .Count - 1 With .Item(i) wait window nowait .Name EndWith Next EndWith