Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.FolderList Property

Returns a SftDirectoryFolder object given a file/folder's index.

Syntax

Get

VB.NETrefFolderObj = object.get_FolderList(ByVal FolderIndex As Integer) As SftDirectoryFolder
VBSet refFolderObj = object.FolderList(ByVal FolderIndex As Integer) As SftDirectoryFolder
C#.NETSftDirectoryFolder refFolderObj = object.get_FolderList(int FolderIndex);
VC++ISftDirectoryFolder* refFolderObj = object->FolderList[int FolderIndex];
ISftDirectoryFolder* refFolderObj = object->GetFolderList(int FolderIndex);
CHRESULT object->get_FolderList(int FolderIndex, ISftDirectoryFolder** refFolderObj);

object

A SftDirectory object.

FolderIndex

The zero-based index of the folder to retrieve.

refFolderObj

Returns a SftDirectoryFolder object given a file/folder's index.

Comments

The FolderList property returns a SftDirectoryFolder object given a file/folder's index.

All files and folders can be retrieved that are currently loaded by the control (including files and folders that are part of a collapsed parent folder).

SftDirectoryFolder objects for each available files and folder can be retrieved using the FolderList property.

Examples

VB.NET

    AxSftDirectory1.MultiSelect = SftDirectoryMultiSelectConstants.selectSftDirectorySingle
    ' SftDirectory2 allows multiple selection
    AxSftDirectory2.MultiSelect = SftDirectoryMultiSelectConstants.selectSftDirectoryMultiple
End Sub

' This is a button event handler
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    ' Select one file/folder (in a single selection control)
    AxSftDirectory1.get_FolderList(1).Selected = True
    ' Select a few files/folders (in a multiple selection control)
    AxSftDirectory2.get_FolderList(1).Selected = True
    AxSftDirectory2.get_FolderList(3).Selected = True
    AxSftDirectory2.get_FolderList(5).Selected = True
End Sub

' This is another button event handler

VB6

    SftDirectory1.MultiSelect = selectSftDirectorySingle
    ' SftDirectory2 allows multiple selection
    SftDirectory2.MultiSelect = selectSftDirectoryMultiple
End Sub

' This is a button event handler
Private Sub Command1_Click()
    ' Select one file/folder (in a single selection control)
    SftDirectory1.FolderList(1).Selected = True
    ' Select a few files/folders (in a multiple selection control)
    SftDirectory2.FolderList(1).Selected = True
    SftDirectory2.FolderList(3).Selected = True
    SftDirectory2.FolderList(5).Selected = True
End Sub

' This is another button event handler

C#

    // SftDirectory2 allows multiple selection
    axSftDirectory2.MultiSelect = SftDirectoryMultiSelectConstants.selectSftDirectoryMultiple;
}

// This is a button event handler
private void button1_Click(object sender, System.EventArgs e)
{
    // Select one file/folder (in a single selection control)
    axSftDirectory1.get_FolderList(1).Selected = true;
    // Select a few files/folders (in a multiple selection control)
    axSftDirectory2.get_FolderList(1).Selected = true;
    axSftDirectory2.get_FolderList(3).Selected = true;
    axSftDirectory2.get_FolderList(5).Selected = true;
}

// This is another button event handler

C++

    return TRUE;
}

// This is a button event handler
void CSelectionsDlg::OnButton1()
{
    // Select one file/folder (in a single selection control)
    m_vDir1->FolderList[1]->Selected = VARIANT_TRUE;
    // Select a few files/folders (in a multiple selection control)
    m_vDir2->FolderList[1]->Selected = VARIANT_TRUE;
    m_vDir2->FolderList[3]->Selected = VARIANT_TRUE;
    m_vDir2->FolderList[5]->Selected = VARIANT_TRUE;
}

// This is another button event handler
void CSelectionsDlg::OnButton2()

See Also SftDirectory Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.