![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Скачать руководство пользователя страница 244](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054244.webp)
244
Workspace
Description
This function collapses all code
before
and
after
the selected code in Code view.
Arguments
allowAdjustmentOfCodeFragments
■
The
allowAdjustmentOfCodeFragments
argument is a required, Boolean value. If
true
,
Dreamweaver adjusts the boundaries of the code
before
and
after
the current selection to
perform a
smart collapse
, which preserves the current indenting and spacing. If
false
,
Dreamweaver collapses the code fragments exactly as indicated by the selection.
Returns
Nothing.
Example
The following example adjusts and then collapses all code before and after the selected code in
Code view:
var currentDOM = dw.getDocumentDOM();
currentDOM.collapseSelectedCodeFragmentInverse(true);
dom.expandAllCodeFragments()
Availability
Dreamweaver 8.
Description
This function expands all collapsed code fragments in Code view, including nested collapsed
code fragments.
Arguments
None.
Returns
Nothing.
Example
The following example expands all collapsed code in Code view:
var currentDOM = dw.getDocumentDOM();
currentDOM.expandAllCodeFragments();
000_DW_API_Print.book Page 244 Wednesday, July 20, 2005 11:58 AM
Содержание DREAMWEAVER 8-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 16: ......
Страница 28: ...28 The File I O API...
Страница 38: ...38 The HTTP API...
Страница 68: ...68 Flash Integration...
Страница 100: ...100 The Database API...
Страница 116: ...116 The JavaBeans API...
Страница 144: ...144 The Source Control Integration API...
Страница 146: ......
Страница 254: ...254 Workspace...
Страница 298: ...298 Site...
Страница 354: ...354 Document...
Страница 396: ...396 Page Content...
Страница 488: ...488 Design...
Страница 550: ...550 Code...