This documentation is archived and is not being maintained.

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)

'Usage
Dim pageSetup1 As PageSetup

Dim returnValue As WdPaperSize
returnValue = pageSetup1.PaperSize

Dim sampleValue As WdPaperSize
pageSetup1.PaperSize = sampleValue

WdPaperSize PaperSize {get; set;}
public WdPaperSize get_PaperSize();
public void set_PaperSize(WdPaperSize);
function get PaperSize() : WdPaperSize;
function set PaperSize(WdPaperSize);

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: