Share via


WebOptions.PixelsPerInch Property

Returns or sets the density (pixels per inch) of graphics images and table cells on a Web page.

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

Syntax

'Declaration
Property PixelsPerInch As Integer
    Get
    Set
'Usage
Dim instance As WebOptions
Dim value As Integer

value = instance.PixelsPerInch

instance.PixelsPerInch = value
int PixelsPerInch { get; set; }

Property Value

Type: System.Int32

Remarks

The range of settings is usually from 19 to 480, and common settings for popular screen sizes are 72, 96, and 120. The default setting is 96.

This property determines the size of the images and cells on the specified Web page relative to the size of text whenever you view the saved document in a Web browser. The physical dimensions of the resulting image or cell are the result of the original dimensions (in inches) multiplied by the number of pixels per inch.

Use the ScreenSize property to set the optimum screen size for the targeted Web browsers.

See Also

Reference

WebOptions Interface

WebOptions Members

Microsoft.Office.Interop.Word Namespace