Click or drag to resize

ShellTreeViewMultipleRoots Property

Configuration of the roots that are displayed in the ShellTreeView

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 7.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