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
 NameDescription
PropertyFirstChildPath

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

C# Syntax

string FirstChildPath {get;}
PropertyHasChildren

Indicates whether the node has children.  

C# Syntax

 bool HasChildren {get;}
PropertyImageIndex

The image index of the node.  

C# Syntax

int ImageIndex {get;}
PropertyIsExpanded

Indicates whether the node is expanded.  

C# Syntax

bool IsExpanded {get;}
PropertyIsSelected

Indicates whether the node is selected.  

C# Syntax

bool IsSelected {get;}
PropertyNextSiblingPath

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

C# Syntax

string NextSiblingPath {get;}
PropertyOverlayImageIndex

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;}
PropertyPath

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

C# Syntax

string Path {get;}
PropertyState

The state image index of the node.  

C# Syntax

int State {get;}
PropertyText

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

C# Syntax

string Text {get;}
Top
Public Methods
 NameDescription
MethodClickState

Clicks the state icon.  

void ClickState()
MethodCollapse

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

C# Syntax

void Collapse()
MethodDoubleClickState

Double-clicks state icon.  

C# Syntax

void DoubleClickState()
MethodDragAndDropOnDrags and drops a test object to the specified target object. (Inherited from HP.LFT.SDK.ISupportDragAndDrop)
MethodEnableLabelEditingActivates 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()
MethodExpand

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

C# Syntax

void Expand()
MethodExpandAll

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

C# Syntax

void ExpandAll()
MethodSetNodeState

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