GetButton Method (IToolBar)
Returns the button with the specified text.

C# Syntax

Parameters

text
The text.
Example
// Clicking the JEditorPane button displays the editor test object.
toolBar.GetButton("JEditorPane").Press();