ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions / Types of variables
  • Properties specific to the description of docSection variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The docSection type is used to define the advanced characteristics of a section found in a document or paragraph.
At document level:
  • the docSection type is used to find out the general information of document.
  • the docSection type is used to modify the entire information for all document sections.
At paragraph level:
  • the docSection type is used to get information about the paragraphs belonging to the same section.
  • the docSection type is used to modify information about the paragraphs belonging to the same section.
The characteristics of this section can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Retrieve the Word Processing control
MyDoc is Document <- WP_MyDoc
// Retrieve the document orientation
Info(MyDoc.Section.Orientation)
// Switch the document orientation to landscape
MyDoc.Section.Orientation = docLandscape
Remarks

Properties specific to the description of docSection variables

The following properties can be used to handle a section:
Property nameType usedEffect
HeaderCharacteristics of page header
Header.FirstPageInheritedBoolean
  • True if the header of the first page in the section is identical to the one of previous section.
  • False otherwise.
Header.FirstPagedocHeaderFooter variableCharacteristics of header for the first page in the section.
Header.EvenPageInheritedBoolean
  • True if the header of even pages in the section is identical to the one of previous section.
  • False otherwise.
Header.EvenPagedocHeaderFooter variableCharacteristics of header for the even pages in the section.
Header.OddPageInheritedBoolean
  • True if the header of odd pages in the section is identical to the one of previous section.
  • False otherwise.
Header.OddPagedocHeaderFooter variableCharacteristics of header for the odd pages in the section.
PageHeightRealPage height for the pages in the section (expressed in millimeters).
PageWidthRealPage width for the pages in the section (expressed in millimeters).
BottomMarginRealBottom margin for the pages in the section (expressed in millimeters).
RightMarginRealRight margin for the pages in the section (expressed in millimeters).
HeaderMarginRealMargin for the page headers of section (expressed in millimeters).
LeftMarginRealLeft margin for the pages in the section (expressed in millimeters).
TopMarginRealTop margin for the pages in the section (expressed in millimeters).
FooterMarginRealMargin for the page footers of section (expressed in millimeters).
MulticolumndocFormatMulticolumn variableOptions for managing the multicolumn of the section.
NumberIntegerSection number.
This property is read-only.
OrientationInteger constantOrientation of section:
  • docLandscape: all the pages found in the section are in Landscape mode.
  • docPortrait: all pages found in the section are in Portrait mode.
PageFooterCharacteristics of footer.
PageFooter.FirstPageInheritedBoolean
  • True if the footer of the first page in the section is identical to the one of previous section.
  • False otherwise.
PageFooter.FirstPagedocHeaderFooter variableCharacteristics of footer for the first page in the section.
PageFooter.EvenPageInheritedBoolean
  • True if the footer of even pages in the section is identical to the one of previous section.
  • False otherwise.
PageFooter.EvenPagedocHeaderFooter variableCharacteristics of footer for the even pages in the section.
PageFooter.OddPageInheritedBoolean
  • True if the footer of odd pages in the section is identical to the one of previous section.
  • False otherwise.
PageFooter.OddPagedocHeaderFooter variableCharacteristics of footer for the odd pages in the section.
FirstPageDifferentBoolean
  • True if, for this section, the headers and footers of the first page in the section differ from the ones of previous section,
  • False otherwise.
TypeInteger constantType of section break that will be applied to all the paragraphs found in the section:
  • ssSectionBreak: Section break to next page.
  • ssSectionBreakContinuous: Section break on the same page. This type of section break is used to separate a 2-column section from a 1-column section on the same page for example. This type of section is not compatible with the modifications regarding the document size, orientation or margins.
  • ssSectionBreakOddPage: Section break to next odd page.
  • ssSectionBreakEvenPage: Section break to next even page.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/22/2022

Send a report | Local help