Table of Contents

Interface ITreeViewNode

Namespace
HP.LFT.SDK.PowerBuilder
Assembly
HP.LFT.SDK.dll

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

public interface ITreeViewNode : ISupportDragAndDrop
Inherited Members

Properties

FirstChildPath

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

string FirstChildPath { get; }

Property Value

string

HasChildren

Indicates whether the node has children.

bool HasChildren { get; }

Property Value

bool

ImageIndex

The image index of the node.

int ImageIndex { get; }

Property Value

int

IsExpanded

Indicates whether the node is expanded.

bool IsExpanded { get; }

Property Value

bool

IsSelected

Indicates whether the node is selected.

bool IsSelected { get; }

Property Value

bool

NextSiblingPath

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

string NextSiblingPath { get; }

Property Value

string

OverlayImageIndex

The index number of the current overlay image.

int OverlayImageIndex { get; }

Property Value

int

ParentPath

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

string ParentPath { get; }

Property Value

string

Path

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

string Path { get; }

Property Value

string

State

The state image index of the node.

int State { get; }

Property Value

int

Text

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

string Text { get; }

Property Value

string

Methods

ClickState()

Clicks the state icon.

void ClickState()

Collapse()

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

void Collapse()

DoubleClickState()

Double-clicks state icon.

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

Expand()

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

void Expand()

ExpandAll()

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

void ExpandAll()

SetNodeState(int)

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

void SetNodeState(int index)

Parameters

index int

The state index.