Skip to main content

VisDirTreeListBox

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Runtime.Vis.50 (5.0.0.0)

Displays a directory hierarchy as an outline.

public class VisDirTreeListBox : VisOutlineListBox

Example:

using (var list = new PPJ.Runtime.Vis.VisDirTreeListBox())
{
list.Width = 240;
}

Constructors

Instance member VisDirTreeListBox()

Initializes the dir tree list box and its default behavior.

Methods

Static member FromHandle(handle)

Resolves this control type from a native window handle.

ParameterTypeDescription
handleSalWindowHandleThe 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.

Instance member GetSelectedDir()

Builds the filesystem path of the selected tree node.

Returns: SalString. The selected directory path, or Null if no node is selected.

Instance member Populate(sDir)

Populates the directory outline through Vis.PopulateDirTree.

ParameterTypeDescription
sDirSalStringThe directory path to display.

Returns: SalBoolean. The result returned by Vis.PopulateDirTree.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow