---
title: "printWindowWillClose(_:)"
framework: Application Services
role: symbol
role_heading: Instance Method
platforms: [macOS 13.0+]
path: applicationservices/pdepanel/3930824-printwindowwillclose
---

# printWindowWillClose(_:)

## Declaration

```swift
optional func printWindowWillClose(_ userCanceled: Bool)
```
