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; }
Public Property MultipleRoots As MultipleRoots
Get
Set
public:
property MultipleRoots MultipleRoots {
MultipleRoots get ();
void set (MultipleRoots value);
}
member MultipleRoots : MultipleRoots with get, set
Property Value
Type:
MultipleRootsSingleRoot 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.
private void MainForm_Load(object sender, EventArgs e)
{
shellTreeView1.ClearRoots();
shellTreeView1.AddRoot(ShellFolder.Desktop);
shellTreeView1.AddRoot(@"c:\windows");
}
See Also