From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Integer )
IntegerValue = aDesktopDisplay.Width

New in 2021r3

Supported for all project types and targets.

The width of the display. Use the DesktopDisplay.DisplayAt method to call Width. For example, DesktopDisplay.DisplayAt(0).Width returns the width of the main display.