Reswin.getitemcount(), Reswin.getselecteditem(), Reswin.setbuttons() – Adobe Dreamweaver API Reference CS5 User Manual

Page 153

Advertising
background image

148

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

Arguments
itemIndex

The itemIndex argument is the index of the item whose data is to be retrieved.

Returns
An array of strings. The first element in the array is the name of the command that added the item; the remaining
elements are the same strings that were passed to the

addItem()

function.

resWin.getItemCount()

Availability
Dreamweaver 4.

Description
Retrieves the number of items in the list.

Arguments
None.

Returns
The number of items in the list.

resWin.getSelectedItem()

Availability
Dreamweaver 4.

Description
Retrieves the index of the selected item.

Arguments
None.

Returns
The index of the currently selected item.

resWin.setButtons()

Availability
Dreamweaver 4.

Description
Sets the buttons specified by the arrButtons argument.

Advertising