Microsoft SDK for Java

ToolBarButton.getImageIndex

Retrieves the index of the image displayed on this button.

Syntax

public final int getImageIndex()

Return Value

Returns the index of the image, if one is associated with this button; otherwise, returns -1.

Remarks

The value returned by this method specifies an image in the parent toolbar's image list.

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