Table of Contents

Interface ITreeView

A standard Windows tree-view object.

Inherited Members
IUiObjectWithLayoutInfo.IsRightAligned
IUiObjectWithLayoutInfo.IsRightToLeftLayout
IUiObjectWithLayoutInfo.IsRightToLeftReading
IUiObjectBase.AccessibleName
IUiObjectBase.AttachedText
IUiObjectBase.Text
IUiObjectBase.WindowExtendedStyle
IUiObjectBase.WindowStyle
IUiObjectBase.WindowClassRegExp
IUiObjectBase.WindowId
IUiObjectBase.MouseMove(Location)
IUiObjectBase.IsFocused
IUiObjectBase.NativeClass
IUiObjectBase.WindowTitleRegExp
IUiObjectBase.Handle
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportSendKeys.SendKeys(string, KeyModifier)
ISupportSendKeys.SendKeys(string)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
Namespace: HP.LFT.SDK.StdWin
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeView : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber

Properties

CheckedVisibleNodes

The checked visible nodes in the tree-view object.

Declaration
ReadOnlyCollection<ITreeViewNode> CheckedVisibleNodes { get; }
Property Value
Type Description
ReadOnlyCollection<ITreeViewNode>

SelectedNodes

The selected nodes in the tree-view object.

Declaration
ReadOnlyCollection<ITreeViewNode> SelectedNodes { get; }
Property Value
Type Description
ReadOnlyCollection<ITreeViewNode>

VisibleNodes

The visible nodes in the tree-view object.

Declaration
ReadOnlyCollection<ITreeViewNode> VisibleNodes { get; }
Property Value
Type Description
ReadOnlyCollection<ITreeViewNode>

Methods

ActivateNode(ITreeViewNode, MouseButton)

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

Declaration
void ActivateNode(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
ITreeViewNode node

Specified node to activate from the tree-view object.

MouseButton button

Optional: The mouse button used to activate the tree view node. Possible values:MouseButton (default value: left button)

ActivateNode(int, MouseButton)

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

Declaration
void ActivateNode(int nodeIndex, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
int nodeIndex

Specified index of the node to activate from the tree-view object

MouseButton button

Optional: The mouse button used to activate the tree view node. Possible values:MouseButton (default value: left button)

ActivateNode(string, MouseButton)

Activates (double-clicks) a node in the tree-view object by the node path.

Declaration
void ActivateNode(string node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
string node

Specified node to activate from the tree-view object

MouseButton button

Optional: The mouse button used to activate the tree view node. Possible values:MouseButton (default value: left button)

GetNode(string)

Returns the node with the given path. When the path is not unique, returns the first matching node.

Declaration
ITreeViewNode GetNode(string nodePath)
Parameters
Type Name Description
string nodePath

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

Returns
Type Description
ITreeViewNode

Select(ITreeViewNode, MouseButton)

Selects a node in the tree-view object.

Declaration
void Select(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
ITreeViewNode node

The node to select from the tree view object.

MouseButton button

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

Select(int, MouseButton)

Selects a node in the tree-view object by node index.

Declaration
void Select(int nodeIndex, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
int nodeIndex

The index of the node to select from the tree view object.

MouseButton button

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

Select(string, MouseButton)

Selects a node in the tree-view object.

Declaration
void Select(string node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
string node

The node to select from the tree view object.

MouseButton button

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

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)