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

Syntax

Property PaperSize() As WdPaperSize
WdPaperSize PaperSize {get; set;}
property WdPaperSize^ PaperSize{
    WdPaperSize^ get();
    Void set(WdPaperSize^);
}
public WdPaperSize get_PaperSize();
public void set_PaperSize(WdPaperSize);
function get PaperSize() : WdPaperSize;
function set PaperSize(WdPaperSize);

Remarks

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

Thread Safety

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

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

PageSetup Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

PageSetup Members