ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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 PageLayout gets and sets the layout:
  • of the current diagram in the Diagram Editor control. The layout is defined in a variable of type diagLayout.
  • of the current worksheet in an Spreadsheet control. The layout is defined in a variable of type xlsLayout.
Example
// Current sheet [NoMargins]
xLayout is xlsLayout = PSHEET_SpreadsheetControl.PageLayout
xLayout.LeftMargin = 0
xLayout.RightMargin = 0
PSHEET_SpreadsheetControl.PageLayout = xLayout
Syntax

Getting the layout of a diagram Hide the details

<Result> = <Diagram Editor control>.PageLayout
<Result>: diagLayout variable
diagLayout variable that corresponds to the current diagram layout.
<Diagram Editor control>: Control name
Name of the Diagram Editor control used.

Changing the layout of a diagram Hide the details

<Diagram Editor control>.PageLayout = <New layout>
<Diagram Editor control>: Control name
Name of the Diagram Editor control used.
<New layout>: diagLayout variable
Name of the diagLayout variable that corresponds to the new diagram layout.
Remarks
This layout is used when printing the diagram via the Diagram Editor control or via iPrintDiagram.
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help