Table of Contents

Class GuiToolbar

Namespace
SapGui.Wrapper
Assembly
SapGui.Wrapper.dll

Wraps a SAP GUI application toolbar (GuiToolbar). This is the row of icon buttons at the top of a screen.

public class GuiToolbar : GuiComponent
Inheritance
GuiToolbar
Inherited Members

Properties

ButtonCount

Number of buttons in the toolbar.

public int ButtonCount { get; }

Property Value

int

Methods

GetButtonTooltip(int)

Returns the tooltip text of a button by zero-based index.

public string GetButtonTooltip(int index)

Parameters

index int

Returns

string

PressButton(int)

Presses a toolbar button by its zero-based index.

public void PressButton(int index)

Parameters

index int

PressButtonByFunctionCode(string)

Presses a toolbar button by its SAP function code string (e.g. "SAVE", "BACK", "EXEC"). The function code is visible in the SAP Script Recorder output. To press a button by its component path, use session.FindById("wnd[0]/tbar[1]/btn[8]").Press() instead.

public void PressButtonByFunctionCode(string functionCode)

Parameters

functionCode string