---
title: widthInPixels
framework: virtualization
role: symbol
role_heading: Instance Property
path: virtualization/vzmacgraphicsdisplayconfiguration/widthinpixels
---

# widthInPixels

The width of the display, in pixels.

## Declaration

```swift
var widthInPixels: Int { get set }
```

## See Also

### Configuring the display properties

- [heightInPixels](virtualization/vzmacgraphicsdisplayconfiguration/heightinpixels.md)
- [pixelsPerInch](virtualization/vzmacgraphicsdisplayconfiguration/pixelsperinch.md)
