Screen.TwipsPerPixelX (property)

Syntax

Screen.TwipsPerPixelX

Description

Returns an Integer representing the number of twips per pixel in the horizontal direction of the installed display driver.

Comments

This property is read-only.

Example

This example displays the number of twips across the screen horizontally.

Sub Main()

  XScreenTwips = Screen.Width * Screen.TwipsPerPixelX

  MsgBox "Total horizontal screen twips = " & XScreenTwips

End Sub

See Also

Screen.TwipsPerPixelY (property).

More information

S