C# Класс Opc.Ua.Client.Controls.BaseTreeCtrl

A base class for tree controls.
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
NodesTV System.Windows.Forms.TreeView

Открытые методы

Метод Описание
BaseTreeCtrl ( ) : System

Initializes a new instance of the BaseTreeCtrl class.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddNode() защищенный Метод

Adds an item to the tree.
protected AddNode ( TreeNode treeNode, object item ) : TreeNode
treeNode System.Windows.Forms.TreeNode
item object
Результат System.Windows.Forms.TreeNode

AddNode() защищенный Метод

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
Результат System.Windows.Forms.TreeNode

BaseTreeCtrl() публичный Метод

Initializes a new instance of the BaseTreeCtrl class.
public BaseTreeCtrl ( ) : System
Результат System

BeforeExpand() защищенный Метод

Initializes a node before expanding it.
protected BeforeExpand ( TreeNode clickedNode ) : bool
clickedNode System.Windows.Forms.TreeNode
Результат bool

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

EnableMenuItems() защищенный Метод

Enables the state of menu items.
protected EnableMenuItems ( TreeNode clickedNode ) : void
clickedNode System.Windows.Forms.TreeNode
Результат void

GetDataToDrag() защищенный Метод

Returns the data to drag.
protected GetDataToDrag ( TreeNode node ) : object
node System.Windows.Forms.TreeNode
Результат object

NodesTV_DragDrop() защищенный Метод

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.
Результат void

NodesTV_DragEnter() защищенный Метод

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.
Результат void

NodesTV_DragOver() защищенный Метод

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.
Результат void

NodesTV_GiveFeedback() защищенный Метод

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.
Результат void

PickNode() защищенный Метод

Sends notifications whenever a node in the control is 'picked'.
protected PickNode ( ) : void
Результат void

SelectNode() защищенный Метод

Sends notifications whenever a node in the control is 'selected'.
protected SelectNode ( ) : void
Результат void

UpdateNode() защищенный Метод

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
Результат void

Описание свойств

NodesTV защищенное свойство

The TreeView contained in the Control.
protected TreeView,System.Windows.Forms NodesTV
Результат System.Windows.Forms.TreeView