Click or drag to resize

ShellTreeViewMultipleRoots Property

Configuration of the roots that are displayed in the ShellTreeView

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
public MultipleRoots MultipleRoots { get; set; }

Property Value

Type: MultipleRoots
SingleRoot if there is only a single root node. Can be configuared via RootedAt or RootedAtFileSystemFolder; MultipleRoots if there can be more than one root. Default will behave like Windows Explorer. Roots can be added via AddRoot(String) or AddRoot(ShellFolder)
Examples
This example will reconfigure the roots displayed in a ShellTree.
C#
private void MainForm_Load(object sender, EventArgs e)
{
    shellTreeView1.ClearRoots();
    shellTreeView1.AddRoot(ShellFolder.Desktop);
    shellTreeView1.AddRoot(@"c:\windows");
}
See Also