Environment.PageSetup Method

Defines the Page Setup.
Public Function PageSetup( _ 
Optional ByVal allowMargins As Boolean = false, _ 
Optional ByVal showDialog As Boolean = true, _ 
Optional ByVal defaultMargins As Nullable(Of Integer) = null, _ 
Optional ByVal paperSize As PaperSize = null, _ 
Optional ByVal landscape As Nullable(Of Boolean) = null _ 
) As Boolean
This language is not supported or no code example is available.
public bool PageSetup( 
bool allowMargins = false, 
bool showDialog = true, 
Nullable<int> defaultMargins = null, 
PaperSize paperSize = null, 
Nullable<bool> landscape = null 
)
This language is not supported or no code example is available.

Parameters

allowMargins
bool

showDialog
bool

defaultMargins
Nullable<int>

paperSize
PaperSize

landscape
Nullable<bool>

Return Value

bool

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition