メインコンテンツまでスキップ
バージョン: 20 R7 BETA

WP DELETE SUBSECTION

WP DELETE SUBSECTION ( wpSection ; subSectionType )
WP DELETE SUBSECTION ( subSection )

引数説明
wpSectionオブジェクト4D Write Pro section
subSectionType倍長整数Subsection type (wk first page, wk left page, or wk right page)
subSectionオブジェクト4D Write Pro subsection

説明

The WP DELETE SUBSECTION command removes the subSectionType subsection elements from the wpSection 4D Write Pro section, or it directly removes the passed subSection. Subsection elements include headers, footers, columns, anchored pictures, etc. Note that the body of the document is left untouched.

In wpSection, pass the section from which you want to remove the subsection elements. The section can be obtained using the WP Get sections or WP Get section commands.

The subSectionType parameter specifes the subsection to delete. You can pass one of the following constants:

定数
wk first page倍長整数1
wk left page倍長整数2
wk right page倍長整数3

Deleting a left page or right page subsection will automatically delete the opposite subsection. For example, if you delete a right page subsection, the left page subsection is automatically deleted.

If the subSectionType does not exist, the command does nothing (no error is generated).

When a subsection is deleted, the header and footer are removed, as well as anchored pictures and textboxes but the body remains untouched.

例題 1

You want to delete the first page subsection of the first section:

 var $section;$subsection : Object
// get first section
$section:=WP Get section(wpDoc;1)
// Delete the subsection
WP DELETE SUBSECTION($section;wk first page)

例題 2

You want to delete the right page subsection of section 3:


$subSection:=WP Get subsection(WP Get section($document;3);wk right page)
WP DELETE SUBSECTION($subSection)

参照

WP Get subsection
WP New subsection