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

A control which displays browse tree.
Inheritance: System.Windows.Forms.UserControl
ファイルを表示 Open project: OPCFoundation/UA-.NET

Public Properties

Property Type Description
BrowseTV System.Windows.Forms.TreeView

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
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.

Method Details

BrowseTreeViewCtrl() public method

Creates a new instance of the control.
public BrowseTreeViewCtrl ( ) : System
return System

ChangeSession() public method

Changes the session used by the control.
public ChangeSession ( Session session ) : void
session Opc.Ua.Client.Session The session.
return void

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

GetChildOfSelectedNode() public method

Returns the child node at the specified index.
public GetChildOfSelectedNode ( int index ) : ReferenceDescription
index int
return Opc.Ua.ReferenceDescription

Initialize() public method

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.
return void

RefreshSelection() public method

The reference for the parent of the currently selected node.
public RefreshSelection ( ) : void
return void

SelectNode() public method

Selects a node in the control.
public SelectNode ( NodeId nodeId ) : bool
nodeId NodeId
return bool

Property Details

BrowseTV public_oe property

The tree control.
public System.Windows.Forms.TreeView BrowseTV
return System.Windows.Forms.TreeView