C# Class Nexus.UI.Controls.VirtualFileSystemTreeView

A tree view that represnts, and allow for the management of, a virtual file system.
The file system can be comprised of a mix real and virtual files and directories, all arranged in a virtual file structure.
Inheritance: FileSystemTreeViewBase
ファイルを表示 Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description

Public Methods

Method Description
AddVirtualNode ( FileSystemTreeNode p_tndRoot, string p_strName ) : FileSystemTreeNode

Adds a virtual file system item to the tree view.

AddVirtualPath ( FileSystemTreeNode p_tndRoot, VirtualFileSystemItem p_vfiPath ) : void

Addes the specified virtual path to the source tree.

AddVirtualPaths ( FileSystemTreeNode p_tndRoot, VirtualFileSystemItem p_vfiPaths ) : void

Addes the specified virtual paths to the source tree.

VirtualFileSystemTreeView ( ) : System

The default constructor.

Protected Methods

Method Description
OnDragDrop ( DragEventArgs e ) : void

Raises the Control.DragDrop.

This handles adding the dropped file/folder to the source tree.

OnDragOver ( DragEventArgs e ) : void

Raises the Control.DragEnter.

This determines if the item being dragged can be dropped at the current location.

OnItemDrag ( ItemDragEventArgs e ) : void

Raises the TreeView.ItemDrag event.

This starts the drag operation of item in the tree view.

OnQueryContinueDrag ( System.Windows.Forms.QueryContinueDragEventArgs e ) : void

Raises the Control.QueryContinueDrag event.

This aborts the drag operation of an item from the source tree view if the action is interrupted or stopped over something other than the virtual file system tree view.

Method Details

AddVirtualNode() public method

Adds a virtual file system item to the tree view.
public AddVirtualNode ( FileSystemTreeNode p_tndRoot, string p_strName ) : FileSystemTreeNode
p_tndRoot FileSystemTreeNode The node to which to add the new item.
p_strName string The name of the new virtual item to add.
return FileSystemTreeNode

AddVirtualPath() public method

Addes the specified virtual path to the source tree.
public AddVirtualPath ( FileSystemTreeNode p_tndRoot, VirtualFileSystemItem p_vfiPath ) : void
p_tndRoot FileSystemTreeNode The node to which to add the path.
p_vfiPath VirtualFileSystemItem The path to add to the source tree.
return void

AddVirtualPaths() public method

Addes the specified virtual paths to the source tree.
public AddVirtualPaths ( FileSystemTreeNode p_tndRoot, VirtualFileSystemItem p_vfiPaths ) : void
p_tndRoot FileSystemTreeNode The node to which to add the paths.
p_vfiPaths VirtualFileSystemItem The paths to add to the source tree.
return void

OnDragDrop() protected method

Raises the Control.DragDrop.
This handles adding the dropped file/folder to the source tree.
protected OnDragDrop ( DragEventArgs e ) : void
e System.Windows.Forms.DragEventArgs A that describes the event arguments.
return void

OnDragOver() protected method

Raises the Control.DragEnter.
This determines if the item being dragged can be dropped at the current location.
protected OnDragOver ( DragEventArgs e ) : void
e System.Windows.Forms.DragEventArgs A that describes the event arguments.
return void

OnItemDrag() protected method

Raises the TreeView.ItemDrag event.
This starts the drag operation of item in the tree view.
protected OnItemDrag ( ItemDragEventArgs e ) : void
e System.Windows.Forms.ItemDragEventArgs A that describes the event arguments.
return void

OnQueryContinueDrag() protected method

Raises the Control.QueryContinueDrag event.
This aborts the drag operation of an item from the source tree view if the action is interrupted or stopped over something other than the virtual file system tree view.
protected OnQueryContinueDrag ( System.Windows.Forms.QueryContinueDragEventArgs e ) : void
e System.Windows.Forms.QueryContinueDragEventArgs A that describes the event arguments.
return void

VirtualFileSystemTreeView() public method

The default constructor.
public VirtualFileSystemTreeView ( ) : System
return System