property ExFileView.SingleSel as Boolean

Retrieves or sets a value indicating whether control support single or multiples selection.

TypeDescription
Boolean A boolean expression indicating whether control support single or multiples selection.

By default, the SingleSel property is True. The SingleSel property specifies whether the user can select single or multiple items in the control. If the SingleSel property is True, the control may select only a single file/folder. If the SingleSel is False, the user can select multiple files/folders by dragging a box, or by using SHIFT and CTRL keys. Use the Get property to get the list of selected files/folders. Use the SelForeColor property to specify the foreground color for selected files or folders. Use the SelBackColor property to specify the background color for selected files or folders. For instance, you can use the ShowFocusRect property on False, if the SingleSel property is True, or using EBN to show the control's selection. The FullRowSelect property enables full-row selection in the control.

The following VB enumerates the selected files and folders:

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

The following C++ enumerates the selected files and folders:

CFiles files = m_fileview.GetGet( 0 /*SelItems*/ );
for ( long i = 0; i < files.GetCount(); i++ )
	OutputDebugString( files.GetItem( COleVariant( i ) ).GetFullName() );

The following VB.NET enumerates the selected files and folders:

With AxExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.SelItems)
    Dim i As Integer
    For i = 0 To .Count - 1
        Debug.WriteLine(.Item(i).FullName)
    Next
End With

The following C# enumerates the selected files and folders:

EXFILEVIEWLib.Files files = axExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.SelItems);
for (int i = 0; i < files.Count; i++)
{
	EXFILEVIEWLib.File file = files[i];
	System.Diagnostics.Debug.WriteLine(file.FullName);
}

The following VFP enumerates the selected files and folders: 

with thisform.ExFileView1.Get( 0 ) && SelItems
 	local i
 	for i = 0 to .Count - 1
		with .Item(i)
			wait window nowait .FullName
		endwith 		
 	next
 endwith