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

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

Protected Properties

Свойство Type Description
NodesTV System.Windows.Forms.TreeView

Méthodes publiques

Méthode Description
BaseTreeCtrl ( ) : System

Initializes a new instance of the BaseTreeCtrl class.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

AddNode() protected méthode

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
Résultat System.Windows.Forms.TreeNode

BaseTreeCtrl() public méthode

Initializes a new instance of the BaseTreeCtrl class.
public BaseTreeCtrl ( ) : System
Résultat System

BeforeExpand() protected méthode

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

Dispose() protected méthode

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

EnableMenuItems() protected méthode

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

GetDataToDrag() protected méthode

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

NodesTV_DragDrop() protected méthode

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.
Résultat void

NodesTV_DragEnter() protected méthode

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.
Résultat void

NodesTV_DragOver() protected méthode

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.
Résultat void

NodesTV_GiveFeedback() protected méthode

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.
Résultat void

PickNode() protected méthode

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

SelectNode() protected méthode

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

UpdateNode() protected méthode

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
Résultat void

Property Details

NodesTV protected_oe property

The TreeView contained in the Control.
protected TreeView,System.Windows.Forms NodesTV
Résultat System.Windows.Forms.TreeView