Table of Contents

Interface ITreeViewNode

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

A tree view node of a .NET Windows Forms tree-view object.

public interface ITreeViewNode : ISupportDragAndDrop
Inherited Members

Properties

FirstChildPath

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

string FirstChildPath { get; }

Property Value

string

HasChildren

Indicates whether this node has children.

bool HasChildren { get; }

Property Value

bool

ImageIndex

The image index of this node.

int ImageIndex { get; }

Property Value

int

IsExpanded

Indicates whether this node is currently expanded.

bool IsExpanded { get; }

Property Value

bool

IsSelected

Indicates whether this node is selected.

bool IsSelected { get; }

Property Value

bool

NextSiblingPath

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

string NextSiblingPath { get; }

Property Value

string

OverlayImageIndex

The index of the current overlay image.

int OverlayImageIndex { get; }

Property Value

int

ParentPath

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

string ParentPath { get; }

Property Value

string

Path

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

string Path { get; }

Property Value

string

State

The state image index of this node.

int State { get; }

Property Value

int

Text

The text of this node. An empty string if the node does not contain any text.

string Text { get; }

Property Value

string

Methods

ClickState()

Clicks the state icon.

void ClickState()

Collapse()

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

void Collapse()

DoubleClickState()

Double-clicks the state icon.

void DoubleClickState()

EnableLabelEditing()

Activates the edit mode for this 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 IEditField or IEditor test object, together with an applicable method.
void EnableLabelEditing()

Expand()

Displays direct sub-nodes of this node in the tree-view control.

void Expand()

ExpandAll()

Displays all nodes of the sub-tree that has this node as the root.

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.