Window.GetWindowDisplayAffinity
-------------------------------

Queries the window display affinity.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [15.3](newinversion153.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Window.GetWindowDisplayAffinity"; WindowRef ) 

**MBS**( **"Window.GetWindowDisplayAffinity";** /\* Queries the window display affinity. \*/  
**$WindowRef**) /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window. | 0 |

### Result

Returns number or error.

### Description

Queries the window display affinity.  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.SetWindowDisplayAffinity](WindowSetWindowDisplayAffinity.md)

### Release notes

- **Version 15.3**
    - Added [Window.GetWindowDisplayAffinity](https://www.mbsplugins.eu/WindowGetWindowDisplayAffinity.shtml) and [Window.SetWindowDisplayAffinity](https://www.mbsplugins.eu/WindowSetWindowDisplayAffinity.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 15.3 News](https://www.mbsplugins.de/archive/2025-07-29/MBS_FileMaker_Plugin_153_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.3pr1](https://www.mbsplugins.de/archive/2025-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 22nd May 2025 , last changed 30th May 2025

  
[Window.GetWidth](WindowGetWidth.md) - [Window.HasCloseButton](WindowHasCloseButton.md)

[HTML Version](WindowGetWindowDisplayAffinity.shtml)