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)

Syntax

'Declaration
Property PageWidth As Single
    Get
    Set
'Usage
Dim instance As PageSetup
Dim value As Single

value = instance.PageWidth

instance.PageWidth = value
float PageWidth { get; set; }

Property Value

Type: System.Single

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.

See Also

Reference

PageSetup Interface

PageSetup Members

Microsoft.Office.Interop.Word Namespace