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

A control which displays browse tree.
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект

Открытые свойства

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

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

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

Creates a new instance of the control.

ChangeSession ( Session session ) : void

Changes the session used by the control.

GetChildOfSelectedNode ( int index ) : ReferenceDescription

Returns the child node at the specified index.

Initialize ( Session session, Opc.Ua.NodeId rootId ) : void

Initializes the control with a root and a set of hierarchial reference types to follow.

RefreshSelection ( ) : void

The reference for the parent of the currently selected node.

SelectNode ( NodeId nodeId ) : bool

Selects a node in the control.

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

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Метод Описание
BrowseTV_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Handles the AfterSelect event of the BrowseTV control.

BrowseTV_BeforeExpand ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Handles the BeforeExpand event of the BrowseTV control.

BrowseTV_DoubleClick ( object sender, EventArgs e ) : void

Handles the DoubleClick event of the BrowseTV control.

BrowseTV_MouseDown ( object sender, MouseEventArgs e ) : void
Browse_RefreshMI_Click ( object sender, EventArgs e ) : void
ChangeSession ( Session session, bool refresh ) : void

Changes the session used by the control.

InitializeComponent ( ) : void

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

SelectNode ( TreeNodeCollection nodes, NodeId nodeId ) : bool

Recursively finds and selects a node in the control.

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

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

Creates a new instance of the control.
public BrowseTreeViewCtrl ( ) : System
Результат System

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

Changes the session used by the control.
public ChangeSession ( Session session ) : void
session Opc.Ua.Client.Session The session.
Результат void

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

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

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

Returns the child node at the specified index.
public GetChildOfSelectedNode ( int index ) : ReferenceDescription
index int
Результат Opc.Ua.ReferenceDescription

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

Initializes the control with a root and a set of hierarchial reference types to follow.
public Initialize ( Session session, Opc.Ua.NodeId rootId ) : void
session Opc.Ua.Client.Session The session.
rootId Opc.Ua.NodeId The root of the hierarchy to browse.
Результат void

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

The reference for the parent of the currently selected node.
public RefreshSelection ( ) : void
Результат void

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

Selects a node in the control.
public SelectNode ( NodeId nodeId ) : bool
nodeId NodeId
Результат bool

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

BrowseTV публичное свойство

The tree control.
public System.Windows.Forms.TreeView BrowseTV
Результат System.Windows.Forms.TreeView