OPCHDA.NET Reference Manual
ShowHDABrowseTree Class Members
See Also  Properties  Methods  Send Feedback
OpcHDAWrapperUA.Net4 Assembly > OPCHDA.NET Namespace : ShowHDABrowseTree Class

Glossary Item Box

The following tables list the members exposed by ShowHDABrowseTree.

Public Constructors

 NameDescription
Public ConstructorShowHDABrowseTree ConstructorConstructor. An object is created for the given OPCHDABrowser and Forms TreeView control. No OPC server access is done in this constructor. The Show() method must be called to browse the server and display the result.
A mouse handler is installed for the specified TreeView control. The OneLevelBrowseMode is selected. Initially only the root level is browsed. The mouse handler browses the branches whenever a branch is selected for the first time.
The default browse ImageList is assigned to the TreeView control and the items are displayed with an icon indicating the read/write access rights of the item.  
Top

Public Properties

 NameDescription
Public PropertyBrowseModeOneLevel If true the the server browsing is done on demand. Initially only one level is browsed. Sub-branches are browsed from the TreeView event handler when a yet unbrowsed branch is selected. If false then the whole server tree structure is browsed and a corresponding TreeNode structure is built. NOTE: With complex servers this may take a long time.  
Public PropertyImageIndexBranch Index of the image displayed for a branch  
Public PropertyImageIndexBranchSelected Index of the image displayed for the selected branch  
Public PropertyImageIndexItem Base Index of the image group the item identification. The item accessRight code is added and the image with this index is displayed.  
Public PropertyImageList Image list used in the BrowsTree  
Public PropertyItemCodeIndexCode used to identify items and branches in TreeNode.ImageIndex
The isBranchand isItem methods use thye definition to find the type of the node.
Default: Item: >= 2
 
Top

Public Methods

 NameDescription
Public MethodDispose This method must be called to uninstall the TreeView mouse event handler.  
Public MethodisBranch Checks if a node is a branch or a leaf.  
Public MethodisLeaf Checks if a node is a leaf or a branch  
Public MethodItemName

Get the full name of the item/branch in the specified branch.

This method is typically used to get the name of the node selcted in a treeView.

C# sample:

TreeNode sel = e.Node ;
string selItem = ItemTree.ItemName( sel ) ;

VB sample:

Dim sel As TreeNode
sel = e.Node
Dim selItem As String
selItem = ItemTree.ItemName(sel)

 
Public MethodShowBrowses the server and displays the branches and items in a TreeView control.
The TreeNode Tag property contains the fully qualified name of this node (item or branch).
The methods isItem() and isBranch() can be used to determine what a specific TreeNode object represents.
 
Public MethodShowImageList Show all images defined in the assigned ImageList  
Top

See Also

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