Interface ITreeView
A .NET WPF tree-view object.
Inherited Members
Namespace: HP.LFT.SDK.WPF
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeView : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Properties
Name
The name of this object.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
ParentText
The text associated with the parent object of this object.
Declaration
string ParentText { 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
GetNode(string)
Returns the node with the specified path. If the path is not unique, returns the first node with the specified path.
Declaration
ITreeViewNode GetNode(string nodePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nodePath | Elements of the path are separated by semi-colons (;). |
Returns
| Type | Description |
|---|---|
| ITreeViewNode |
Select(ITreeViewNode)
Selects a node in the tree-view object.
Declaration
void Select(ITreeViewNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode | node | The node to select. |
Select(int)
Selects a node in the tree-view object by node index.
Declaration
void Select(int nodeIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | nodeIndex | The index of the node to select. |
Select(string)
Selects a node in the tree-view object.
Declaration
void Select(string node)
Parameters
| Type | Name | Description |
|---|---|---|
| string | node | The node to select. |