PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

New WINDEV 27 feature!
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 of the diagram is defined in a variable of type diagLayout.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
// Layout for A4
myLayout is diagLayout
myLayout.PageWidth = 210.0
myLayout.PageHeight = 297.0
 
DIAGEDT_MyDiagram.PageLayout = myLayout
// 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