Dreamweaver.cssstylepalette.newstyle(), Dreamweaver.cssstylepalette.renameselectedstyle() – Adobe Dreamweaver API Reference CS5 User Manual
Page 399

394
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
•
The bGetFullSelector argument is optional. It is a Boolean value that, if
true
, returns the complete selector string,
instead of just the names. Defaults to
false
.
Returns
An array of strings that represent the names of all the class styles in the document.
Example
If the Styles panel is set up as shown in the following figure, a call to the
dreamweaver.cssStylePalette.getStyles()
function returns an array that contains these strings:
"BreadcrumbEnd"
,
"change"
,
"doctitle"
,
"heading"
, and
"highlight"
:
dreamweaver.cssStylePalette.newStyle()
Availability
Dreamweaver 3.
Description
Opens the New Style dialog box.
Arguments
None.
Returns
Nothing.
dreamweaver.cssStylePalette.renameSelectedStyle()
Availability
Dreamweaver 3.
Description
Renames the class name that is used in the currently selected rule in the Styles panel and all instances of the class name
in the selected rule.