Table of Contents

Interface ITreeViewNode

A single tree view node belonging to a PowerBuilder tree view control.

Namespace: HP.LFT.SDK.PowerBuilder
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeViewNode : ISupportDragAndDrop

Properties

FirstChildPath

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

Declaration
string FirstChildPath { get; }
Property Value
Type Description
string

HasChildren

Indicates whether the node has children.

Declaration
bool HasChildren { get; }
Property Value
Type Description
bool

ImageIndex

The image index of the node.

Declaration
int ImageIndex { get; }
Property Value
Type Description
int

IsExpanded

Indicates whether the node is expanded.

Declaration
bool IsExpanded { get; }
Property Value
Type Description
bool

IsSelected

Indicates whether the node is selected.

Declaration
bool IsSelected { get; }
Property Value
Type Description
bool

NextSiblingPath

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

Declaration
string NextSiblingPath { get; }
Property Value
Type Description
string

OverlayImageIndex

The index number of the current overlay image.

Declaration
int OverlayImageIndex { get; }
Property Value
Type Description
int

ParentPath

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

Declaration
string ParentPath { get; }
Property Value
Type Description
string

Path

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

Declaration
string Path { get; }
Property Value
Type Description
string

State

The state image index of the node.

Declaration
int State { get; }
Property Value
Type Description
int

Text

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

Declaration
string Text { get; }
Property Value
Type Description
string

Methods

ClickState()

Clicks the state icon.

Declaration
void ClickState()

Collapse()

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

Declaration
void Collapse()

DoubleClickState()

Double-clicks state icon.

Declaration
void DoubleClickState()

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.
Declaration
void EnableLabelEditing()

Expand()

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

Declaration
void Expand()

ExpandAll()

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

Declaration
void ExpandAll()

SetNodeState(int)

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

Declaration
void SetNodeState(int index)
Parameters
Type Name Description
int index

The state index.