Table of Contents

Class GuiTree

Namespace
SapGui.Wrapper
Assembly
SapGui.Wrapper.dll

Wraps a SAP GUI tree control (GuiTree). Tree controls appear in, e.g., the Easy Access menu or transport organizer.

public class GuiTree : GuiComponent
Inheritance
GuiTree
Inherited Members

Properties

SelectedNode

Gets the currently selected node key.

public string SelectedNode { get; }

Property Value

string

Methods

CollapseNode(string)

Collapses a tree node.

public void CollapseNode(string nodeKey)

Parameters

nodeKey string

DoubleClickNode(string)

Double-clicks a node (often used to open a transaction).

public void DoubleClickNode(string nodeKey)

Parameters

nodeKey string

ExpandNode(string)

Expands a tree node by its key.

public void ExpandNode(string nodeKey)

Parameters

nodeKey string

GetAllNodeKeys()

Returns every node key in the entire tree as a flat list.

public IReadOnlyList<string> GetAllNodeKeys()

Returns

IReadOnlyList<string>

GetChildNodeKeys(string)

Returns the first-level child node keys of the given parent key. Pass an empty string or the root key to get top-level nodes.

public IReadOnlyList<string> GetChildNodeKeys(string parentNodeKey)

Parameters

parentNodeKey string

Returns

IReadOnlyList<string>

GetItemText(string, string)

Returns the text of a specific cell in a multi-column tree.

public string GetItemText(string nodeKey, string columnName)

Parameters

nodeKey string

The node key.

columnName string

The technical column name.

Returns

string

GetNodeText(string)

Returns the text of a node (its display label).

public string GetNodeText(string nodeKey)

Parameters

nodeKey string

Returns

string

GetNodeType(string)

Returns the node type string for a given node key. Typical values are "LEAF" and "FOLDER".

public string GetNodeType(string nodeKey)

Parameters

nodeKey string

Returns

string

NodeContextMenu(string)

Opens the context menu for a node (equivalent to right-clicking it).

public void NodeContextMenu(string nodeKey)

Parameters

nodeKey string

SelectNode(string)

Selects a tree node.

public void SelectNode(string nodeKey)

Parameters

nodeKey string