Interface ITreeView
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
ErrorText
Returns the tooltip text of the error icon associated with this object.
string ErrorText { get; }
Property Value
SelectedNodes
Returns the selected nodes in this tree view object.
ReadOnlyCollection<ITreeViewNode> SelectedNodes { get; }
Property Value
VisibleNodes
Returns the visible nodes in this tree view object.
ReadOnlyCollection<ITreeViewNode> VisibleNodes { get; }
Property Value
Methods
ActivateNode(ITreeViewNode, MouseButton)
Activates (double-clicks) a node in this tree-view object.
void ActivateNode(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
nodeITreeViewNodeThe node to activate.
buttonMouseButtonOptional. 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
nodeIndexintThe index of the node to activate.
buttonMouseButtonOptional: 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
nodestringThe node to activate
buttonMouseButtonOptional: 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
nodePathstringThe path of the node to retrieve separated by ';' char.
Returns
Select(ITreeViewNode, MouseButton)
Selects a node in this tree view object.
void Select(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
nodeITreeViewNodeThe node to select.
buttonMouseButtonOptional. 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
nodeIndexintThe index of the node to select.
buttonMouseButtonOptional: 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
nodestringThe node to select .
buttonMouseButtonOptional: The mouse button used to select the node. (default value: left button)