Microsoft SDK for Java

ToolBarButton.getText

Retrieves the text that is displayed on this button.

Syntax

public final String getText()

Return Value

Returns a string containing this button's caption.

Remarks

To determine how the text on a button is aligned with regard to images displayed on the button, use the ToolBar class' setTextAlign method.

See Also   setText

© 1999 Microsoft Corporation. All rights reserved. Terms of use.