ITreeViewNode Interface
A single tree view node belonging to a PowerBuilde tree view control.
C# Syntax
public interface ITreeViewNode : HP.LFT.SDK.ISupportDragAndDrop  
Public Properties
  Name Description
Property FirstChildPath

The full path of the node's first child node as a semi-colon delimited string.

C# Syntax

string FirstChildPath {get;}
Property HasChildren

Indicates whether the node has children.  

C# Syntax

 bool HasChildren {get;}
Property ImageIndex

The image index of the node.  

C# Syntax

int ImageIndex {get;}
Property IsExpanded

Indicates whether the node is expanded.  

C# Syntax

bool IsExpanded {get;}
Property IsSelected

Indicates whether the node is selected.  

C# Syntax

bool IsSelected {get;}
Property NextSiblingPath

The full path of the node's next sibling node as a semi-colon delimited string.  

C# Syntax

string NextSiblingPath {get;}
Property OverlayImageIndex

The index number of the current overlay image.  

C# Syntax

int OverlayImageIndex {get;}
Property ParentPath

The full path of the node's parent node as a semi-colon delimited string.  

C# Syntax

string ParentPath {get;}
Property Path

The full path of the node as a semi-colon delimited string.  

C# Syntax

string Path {get;}
Property State

The state image index of the node.  

C# Syntax

int State {get;}
Property Text

The text of the node, or "" when empty.  

C# Syntax

string Text {get;}
Top
Public Methods
  Name Description
Method ClickState

Clicks the state icon.  

void ClickState()
Method Collapse

Hides sub-nodes of the specified node in the expanded tree-view control.  

C# Syntax

void Collapse()
Method DoubleClickState

Double-clicks state icon.  

C# Syntax

void DoubleClickState()
Method DragAndDropOn Drags and drops a test object to the specified target object. (Inherited from HP.LFT.SDK.ISupportDragAndDrop)
Method EnableLabelEditing Activates the edit mode for the node in the tree-view control to enable renaming.

IMPORTANT: This method only enables the node for renaming. To actually rename the node, you must set its value using the IEditor or IEditField test object, together with an applicable method.  

C# Syntax

void EnableLabelEditing()
Method Expand

Displays hidden sub-nodes of the specified node in the tree-view control.  

C# Syntax

void Expand()
Method ExpandAll

Expands the node in the tree-view control and all of the nodes below it.  

C# Syntax

void ExpandAll()
Method SetNodeState

Sets the state of the check box icon of the specified node in the tree-view control.  

C# Syntax

void SetNodeState( 
   int index
)

Parameters

index
The state index.
Top