beautypg.com

Dreamweaver.historypalette.getstepcount(), Dreamweaver.historypalette.getstepsasjavascript() – Adobe Dreamweaver API Reference CS5 User Manual

Page 132

background image

127

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

Returns
An array that contains the position indices of all the selected steps. The first position is position 0 (zero).

Example
If the second, third, and fourth steps are selected in the History panel, as shown in the following figure, a call to the

dreamweaver.historyPalette.getSelectedSteps()

function returns

[1,2,3]

:

dreamweaver.historyPalette.getStepCount()

Availability
Dreamweaver 3.

Description
Gets the number of steps in the History panel.

Arguments
None.

Returns
An integer that represents the number of steps that are currently listed in the History panel.

dreamweaver.historyPalette.getStepsAsJavaScript()

Availability
Dreamweaver 3.

Description
Gets the JavaScript equivalent of the specified history steps.

Arguments
arrayOfIndices

The arrayOfIndices argument is an array of position indices in the History panel.

Returns
A string that contains the JavaScript that corresponds to the specified history steps.