Interface ITreeView
A .NET Windows Forms tree-view object.
Inherited Members
Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeView : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Properties
CheckedVisibleNodes
Returns the checked visible nodes in this tree-view object.
Declaration
ReadOnlyCollection<ITreeViewNode> CheckedVisibleNodes { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<ITreeViewNode> |
ErrorText
Returns the tooltip text of the error icon associated with this object.
Declaration
string ErrorText { get; }
Property Value
| Type | Description |
|---|---|
| string |
SelectedNodes
Returns the selected nodes in this tree view object.
Declaration
ReadOnlyCollection<ITreeViewNode> SelectedNodes { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<ITreeViewNode> |
VisibleNodes
Returns the visible nodes in this tree view object.
Declaration
ReadOnlyCollection<ITreeViewNode> VisibleNodes { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<ITreeViewNode> |
Methods
ActivateNode(ITreeViewNode, MouseButton)
Activates (double-clicks) a node in this tree-view object.
Declaration
void ActivateNode(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode | node | The node to activate. |
| MouseButton | button | 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.
Declaration
void ActivateNode(int nodeIndex, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| int | nodeIndex | The index of the node to activate. |
| MouseButton | button | 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.
Declaration
void ActivateNode(string node, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| string | node | The node to activate |
| MouseButton | button | 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.
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 this tree view object.
Declaration
void Select(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode | node | The node to select. |
| MouseButton | button | 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.
Declaration
void Select(int nodeIndex, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| int | nodeIndex | The index of the node to select. |
| MouseButton | button | Optional: The mouse button used to select the node. (default value: left button) |
Select(string, MouseButton)
Selects a node in this tree view object.
Declaration
void Select(string node, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| string | node | The node to select . |
| MouseButton | button | Optional: The mouse button used to select the node. (default value: left button) |