---
title: "webViewHeaderHeight(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webuidelegate/webviewheaderheight(_:)"
---

# webViewHeaderHeight(_:)

Returns the height of the web view’s printed page header.

## Declaration

```swift
optional func webViewHeaderHeight(_ sender: WebView!) -> Float
```

## Parameters

- `sender`: The web view that sent the message.

## Return Value

Return Value The height of the web view’s printed page header. Returns 0.0 if no space is reserved for the header.

## Discussion

Discussion The height returned by this method is used to calculate the rectangle passed to the webView(_:drawHeaderIn:) method.

## See Also

### Printing

- [webView(_:print:)](webkit/webuidelegate/webview(_:print:).md)
- [webViewFooterHeight(_:)](webkit/webuidelegate/webviewfooterheight(_:).md)
- [webView(_:drawHeaderIn:)](webkit/webuidelegate/webview(_:drawheaderin:).md)
- [webView(_:drawFooterIn:)](webkit/webuidelegate/webview(_:drawfooterin:).md)
