C# Class Opc.Ua.Client.Controls.BaseTreeCtrl

A base class for tree controls.
Inheritance: System.Windows.Forms.UserControl
Mostrar archivo Open project: OPCFoundation/UA-.NET

Protected Properties

Property Type Description
NodesTV System.Windows.Forms.TreeView

Public Methods

Method Description
BaseTreeCtrl ( ) : System

Initializes a new instance of the BaseTreeCtrl class.

Protected Methods

Method Description
AddNode ( TreeNode treeNode, object item ) : TreeNode

Adds an item to the tree.

AddNode ( TreeNode parent, object item, string text, string icon ) : TreeNode

Adds an item to the tree.

BeforeExpand ( TreeNode clickedNode ) : bool

Initializes a node before expanding it.

Dispose ( bool disposing ) : void

Clean up any resources being used.

EnableMenuItems ( TreeNode clickedNode ) : void

Enables the state of menu items.

GetDataToDrag ( TreeNode node ) : object

Returns the data to drag.

NodesTV_DragDrop ( object sender, DragEventArgs e ) : void

Handles the DragDrop event of the NodesTV control.

NodesTV_DragEnter ( object sender, DragEventArgs e ) : void

Handles the DragEnter event of the NodesTV control.

NodesTV_DragOver ( object sender, DragEventArgs e ) : void

Handles the DragOver event of the NodesTV control.

NodesTV_GiveFeedback ( object sender, System.Windows.Forms.GiveFeedbackEventArgs e ) : void

Handles the GiveFeedback event of the NodesTV control.

PickNode ( ) : void

Sends notifications whenever a node in the control is 'picked'.

SelectNode ( ) : void

Sends notifications whenever a node in the control is 'selected'.

UpdateNode ( TreeNode treeNode, object item, string text, string icon ) : void

Updates a tree node with the current contents of an object.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

NodesTV_AfterSelect ( object sender, TreeViewEventArgs e ) : void
NodesTV_BeforeExpand ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void
NodesTV_DoubleClick ( object sender, EventArgs e ) : void
NodesTV_MouseDown ( object sender, MouseEventArgs e ) : void

Method Details

AddNode() protected method

Adds an item to the tree.
protected AddNode ( TreeNode treeNode, object item ) : TreeNode
treeNode System.Windows.Forms.TreeNode
item object
return System.Windows.Forms.TreeNode

AddNode() protected method

Adds an item to the tree.
protected AddNode ( TreeNode parent, object item, string text, string icon ) : TreeNode
parent System.Windows.Forms.TreeNode
item object
text string
icon string
return System.Windows.Forms.TreeNode

BaseTreeCtrl() public method

Initializes a new instance of the BaseTreeCtrl class.
public BaseTreeCtrl ( ) : System
return System

BeforeExpand() protected method

Initializes a node before expanding it.
protected BeforeExpand ( TreeNode clickedNode ) : bool
clickedNode System.Windows.Forms.TreeNode
return bool

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

EnableMenuItems() protected method

Enables the state of menu items.
protected EnableMenuItems ( TreeNode clickedNode ) : void
clickedNode System.Windows.Forms.TreeNode
return void

GetDataToDrag() protected method

Returns the data to drag.
protected GetDataToDrag ( TreeNode node ) : object
node System.Windows.Forms.TreeNode
return object

NodesTV_DragDrop() protected method

Handles the DragDrop event of the NodesTV control.
protected NodesTV_DragDrop ( object sender, DragEventArgs e ) : void
sender object The source of the event.
e System.Windows.Forms.DragEventArgs The instance containing the event data.
return void

NodesTV_DragEnter() protected method

Handles the DragEnter event of the NodesTV control.
protected NodesTV_DragEnter ( object sender, DragEventArgs e ) : void
sender object The source of the event.
e System.Windows.Forms.DragEventArgs The instance containing the event data.
return void

NodesTV_DragOver() protected method

Handles the DragOver event of the NodesTV control.
protected NodesTV_DragOver ( object sender, DragEventArgs e ) : void
sender object The source of the event.
e System.Windows.Forms.DragEventArgs The instance containing the event data.
return void

NodesTV_GiveFeedback() protected method

Handles the GiveFeedback event of the NodesTV control.
protected NodesTV_GiveFeedback ( object sender, System.Windows.Forms.GiveFeedbackEventArgs e ) : void
sender object The source of the event.
e System.Windows.Forms.GiveFeedbackEventArgs The instance containing the event data.
return void

PickNode() protected method

Sends notifications whenever a node in the control is 'picked'.
protected PickNode ( ) : void
return void

SelectNode() protected method

Sends notifications whenever a node in the control is 'selected'.
protected SelectNode ( ) : void
return void

UpdateNode() protected method

Updates a tree node with the current contents of an object.
protected UpdateNode ( TreeNode treeNode, object item, string text, string icon ) : void
treeNode System.Windows.Forms.TreeNode
item object
text string
icon string
return void

Property Details

NodesTV protected_oe property

The TreeView contained in the Control.
protected TreeView,System.Windows.Forms NodesTV
return System.Windows.Forms.TreeView