Interface ITreeViewNode
A tree view node of a .NET Windows Forms tree-view object.
Inherited Members
Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeViewNode : ISupportDragAndDrop
Properties
FirstChildPath
The full path of this node's first child node as a semi-colon delimited string.
Declaration
string FirstChildPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
HasChildren
Indicates whether this node has children.
Declaration
bool HasChildren { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ImageIndex
The image index of this node.
Declaration
int ImageIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsExpanded
Indicates whether this node is currently expanded.
Declaration
bool IsExpanded { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSelected
Indicates whether this node is selected.
Declaration
bool IsSelected { get; }
Property Value
| Type | Description |
|---|---|
| bool |
NextSiblingPath
The full path of this node's next sibling node as a semi-colon delimited string.
Declaration
string NextSiblingPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
OverlayImageIndex
The index of the current overlay image.
Declaration
int OverlayImageIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
ParentPath
The full path of this node's parent node as a semi-colon delimited string.
Declaration
string ParentPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Path
The full path of this node as a semi-colon delimited string.
Declaration
string Path { get; }
Property Value
| Type | Description |
|---|---|
| string |
State
The state image index of this node.
Declaration
int State { get; }
Property Value
| Type | Description |
|---|---|
| int |
Text
The text of this node. An empty string if the node does not contain any text.
Declaration
string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ClickState()
Clicks the state icon.
Declaration
void ClickState()
Collapse()
Hides sub-nodes of this node in the expanded tree-view control.
Declaration
void Collapse()
DoubleClickState()
Double-clicks the state icon.
Declaration
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.Declaration
void EnableLabelEditing()
Expand()
Displays direct sub-nodes of this node in the tree-view control.
Declaration
void Expand()
ExpandAll()
Displays all nodes of the sub-tree that has this node as the root.
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. |