OPCHDA.NET Reference Manual
BrowseHDATree Constructor(OPCHDABrowser,TreeView)
See Also  Send Feedback
OpcHDAWrapperUA.Net4 Assembly > OPCHDA.NET Namespace > BrowseHDATree Class > BrowseHDATree Constructor : BrowseHDATree Constructor(OPCHDABrowser,TreeView)

brw
HDA server browser object to be used. Each HDA browser has a set of filter that are defiend when the browser object is created.
trview

If a TreeView object is specified than a MouseDown event handler is installed to handle incremental browsing. In this mode the initial browsing does browse only the root node. This event handler browses and displays the subnodes when the branch is selected for the first time.

The property OneLevelBrowseMode (incremental browsing) is initialized to true when a TreeView object is defined.

Glossary Item Box

Constructor. An empty BrowseTree object is created. The passed OPCHDABrowser is used to browse the server.
If a TreeView control is passed then a mouse handler is installed for it and OneLevelBrowseMode is selected. The server is browsed incrementally when a branch is selected for the first time. Initially only the root level is browsed.
The created TreeNode structure contains on each level all the items and sub-branches. Use the methods isItem() and isBranch() to determine what a specific TreeNode object represents.
The TreeNode Tag property contains the fully qualified name of this node (item or branch).
Use the CreateTree method to browse the server.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal brw As OPCHDABrowser, _
   ByVal trview As TreeView _
)
C# 
public BrowseHDATree( 
   OPCHDABrowser brw,
   TreeView trview
)

Parameters

brw
HDA server browser object to be used. Each HDA browser has a set of filter that are defiend when the browser object is created.
trview

If a TreeView object is specified than a MouseDown event handler is installed to handle incremental browsing. In this mode the initial browsing does browse only the root node. This event handler browses and displays the subnodes when the branch is selected for the first time.

The property OneLevelBrowseMode (incremental browsing) is initialized to true when a TreeView object is defined.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.