VisDesktopListBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Runtime.Vis.50 (5.0.0.0)
Displays a desktop-style outline of drives and directories.
- C#
- VB.NET
public class VisDesktopListBox : VisOutlineListBox
Public Class VisDesktopListBox
Inherits VisOutlineListBox
Example:
using (var list = new PPJ.Runtime.Vis.VisDesktopListBox())
{
list.Width = 240;
}
Constructors
VisDesktopListBox()
Initializes the desktop 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: VisDesktopListBox. The associated VisDesktopListBox, or null when no managed control owns the handle.
A handle belonging to a different managed control type causes an InvalidCastException.
GetItemDir(hItem)
Builds a filesystem path from an outline node handle.
| Parameter | Type | Description |
|---|---|---|
| hItem | SalNumber | The persistent Visual Toolchest node handle, not a visible item index. |
Returns: SalString. The path, or SalString.Null for an unknown handle or a Desktop, My Computer, or Network Neighborhood node.
GetSelectedDir()
Builds a filesystem path from the selected node.
Returns: SalString. The selected path, or SalString.Null if nothing is selected.
Synthetic desktop nodes do not identify filesystem directories and may yield an empty path.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalListControl | |
| ISalWindow |