PageSetup.PageWidth Property 

Returns or sets the width of the page in points.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim pageSetup1 As PageSetup

Dim returnValue As Single
returnValue = pageSetup1.PageWidth

Dim sampleValue As Single
pageSetup1.PageWidth = sampleValue

Syntax

Property PageWidth() As Single
float PageWidth {get; set;}
property Single PageWidth{
    Single get();
    Void set(Single);
}
public float get_PageWidth();
public void set_PageWidth(float);
function get PageWidth() : float;
function set PageWidth(float);

Remarks

Setting the PageWidth property changes the PaperSize property to wdPaperCustom.

Use the PaperSize property to set the page height and width to those of a predefined paper size, such as Letter or A4.

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