PageSetup.PaperSize Property

Returns or sets the paper size.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property PaperSize As WdPaperSize
    Get
    Set
'Usage
Dim instance As PageSetup
Dim value As WdPaperSize

value = instance.PaperSize

instance.PaperSize = value
WdPaperSize PaperSize { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdPaperSize

Remarks

Setting the PageHeight or PageWidth property changes the PaperSize property to wdPaperCustom.

See Also

Reference

PageSetup Interface

PageSetup Members

Microsoft.Office.Interop.Word Namespace