Table of Contents

Interface ITreeView

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

A .NET Windows Forms tree-view object.

public interface ITreeView : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

CheckedVisibleNodes

Returns the checked visible nodes in this tree-view object.

ReadOnlyCollection<ITreeViewNode> CheckedVisibleNodes { get; }

Property Value

ReadOnlyCollection<ITreeViewNode>

ErrorText

Returns the tooltip text of the error icon associated with this object.

string ErrorText { get; }

Property Value

string

SelectedNodes

Returns the selected nodes in this tree view object.

ReadOnlyCollection<ITreeViewNode> SelectedNodes { get; }

Property Value

ReadOnlyCollection<ITreeViewNode>

VisibleNodes

Returns the visible nodes in this tree view object.

ReadOnlyCollection<ITreeViewNode> VisibleNodes { get; }

Property Value

ReadOnlyCollection<ITreeViewNode>

Methods

ActivateNode(ITreeViewNode, MouseButton)

Activates (double-clicks) a node in this tree-view object.

void ActivateNode(ITreeViewNode node, MouseButton button = MouseButton.Left)

Parameters

node ITreeViewNode

The node to activate.

button MouseButton

Optional. The mouse button used to activate the node. Default is left button.

ActivateNode(int, MouseButton)

Activates (double-clicks) a node in this tree-view object by node index.

void ActivateNode(int nodeIndex, MouseButton button = MouseButton.Left)

Parameters

nodeIndex int

The index of the node to activate.

button MouseButton

Optional: The mouse button used to activate the node. (default value: left button)

ActivateNode(string, MouseButton)

Activates (double-clicks) a node in this tree-view object.

void ActivateNode(string node, MouseButton button = MouseButton.Left)

Parameters

node string

The node to activate

button MouseButton

Optional: The mouse button used to activate node. (default value: left button)

GetNode(string)

Returns the node at the given path. If the path is not unique, the first matching node is returned.

ITreeViewNode GetNode(string nodePath)

Parameters

nodePath string

The path of the node to retrieve separated by ';' char.

Returns

ITreeViewNode

Select(ITreeViewNode, MouseButton)

Selects a node in this tree view object.

void Select(ITreeViewNode node, MouseButton button = MouseButton.Left)

Parameters

node ITreeViewNode

The node to select.

button MouseButton

Optional. The mouse button used to select the node. Default is left button.

Select(int, MouseButton)

Selects a node in this tree view object by node index.

void Select(int nodeIndex, MouseButton button = MouseButton.Left)

Parameters

nodeIndex int

The index of the node to select.

button MouseButton

Optional: The mouse button used to select the node. (default value: left button)

Select(string, MouseButton)

Selects a node in this tree view object.

void Select(string node, MouseButton button = MouseButton.Left)

Parameters

node string

The node to select .

button MouseButton

Optional: The mouse button used to select the node. (default value: left button)