Interface ITreeView
A column tree, list tree, or simple tree control in a SAP GUI for Windows application.
public interface ITreeView : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider
- Inherited Members
- Extension Methods
Properties
SelectedItem
The value of the selected item in the tree node.
string SelectedItem { get; }
Property Value
SelectedNodePath
The path to the selected node. The semicolon delimited list of nodes in the path.
string SelectedNodePath { get; }
Property Value
SelectionMode
Indicates which selections can be made in the tree.
TreeSelectionMode SelectionMode { get; }
Property Value
TreeType
Indicates the type of tree.
TreeType TreeType { get; }
Property Value
Methods
ActivateNode(ITreeViewNode)
Activates the provided node in the tree.
void ActivateNode(ITreeViewNode node)
Parameters
nodeITreeViewNodeThe node.
ActivateNode(string)
Activates the specified node in the tree by path.
void ActivateNode(string path)
Parameters
pathstringNodes in the path can be specified by name or 1-based index in the format "#index".
Remarks
Use the BuildNodePath method to build the path argument.
You can use regular expressions for elements in the path. The format is: RegExp:=(regular expression).
BuildNodePath(params object[])
Returns the path constructed from the specified path elements.
string BuildNodePath(params object[] nodePathParts)
Parameters
nodePathPartsobject[]The node path elements can be: logical name (string), full path (string), or 1-based index (int).
Returns
ClickColumn(string)
Clicks the specified column in this column tree or list tree, by name
void ClickColumn(string column)
Parameters
columnstringThe name of the column to click.
ClickColumn(uint)
Clicks the specified column in this column tree or list tree, by index.
void ClickColumn(uint columnIndex)
Parameters
columnIndexuint1-based.
GetNode(string)
Returns the node with the specified path. If the path is not unique, returns the first node with the specified path.
ITreeViewNode GetNode(string path)
Parameters
pathstringElements of the path are separated by semi-colons (;).
Returns
Remarks
Use the BuildNodePath method to build the node path string to be used as the path argument for this method.
OpenContextMenu()
Opens a tree's default context menu.
void OpenContextMenu()
Remarks
After opening a context menu, you can use the SelectMenuItemById method to select the menu item.
OpenHeaderContextMenu(string)
Opens the context menu for a header in this column tree or list tree, by column name.
void OpenHeaderContextMenu(string column)
Parameters
columnstringThe column name.
Remarks
After opening a context menu, you can use SelectMenuItemById(string) to select a menu item.
OpenHeaderContextMenu(uint)
Opens the context menu for a header in this column tree or list tree, by column index.
void OpenHeaderContextMenu(uint columnIndex)
Parameters
columnIndexuint1-based.
Remarks
After opening a context menu, you can use SelectMenuItemById(string) to select a menu item.
PressEnter()
Presses the ENTER key.
void PressEnter()
Remarks
Set the focus to the tree item or node before invoking.
SelectMenuItemById(string)
Selects the specified menu item from a context menu in a tree.
void SelectMenuItemById(string menuItemId)
Parameters
menuItemIdstringThe SAP ID of the menu item in string format.
SelectNode(ITreeViewNode)
Selects the provided node in the tree.
void SelectNode(ITreeViewNode node)
Parameters
nodeITreeViewNodeThe node.
SelectNode(string)
Selects a node in the tree, by path.
void SelectNode(string path)
Parameters
pathstringNodes in the path can be specified by name or 1-based index in the format "#index".
Remarks
Use the BuildNodePath method to build the path argument.
You can use regular expressions for elements in the path. The format is: RegExp:=(regular expression).