VisDirTreeListBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Runtime.Vis.50 (5.0.0.0)
Displays a directory hierarchy as an outline.
- C#
- VB.NET
public class VisDirTreeListBox : VisOutlineListBox
Public Class VisDirTreeListBox
Inherits VisOutlineListBox
Example:
using (var list = new PPJ.Runtime.Vis.VisDirTreeListBox())
{
list.Width = 240;
}
Constructors
VisDirTreeListBox()
Initializes the dir tree list box and its default behavior.
Methods
FromHandle(handle)
Resolves this control type from a native window handle.
| Parameter | Type | Description |
|---|---|---|
| handle | SalWindowHandle | The native control handle. |
Returns: VisDirTreeListBox. The associated VisDirTreeListBox, or null when no managed control owns the handle.
A handle belonging to a different managed control type causes an InvalidCastException.
GetSelectedDir()
Builds the filesystem path of the selected tree node.
Returns: SalString. The selected directory path, or Null if no node is selected.
Populate(sDir)
Populates the directory outline through Vis.PopulateDirTree.
| Parameter | Type | Description |
|---|---|---|
| sDir | SalString | The directory path to display. |
Returns: SalBoolean. The result returned by Vis.PopulateDirTree.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalListControl | |
| ISalWindow |