Window.GetMaxWidth
------------------

Queries maximum allowed width for a window.

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

MBS( "Window.GetMaxWidth"; WindowRef ) 

**MBS**( **"Window.GetMaxWidth";** /\* Queries maximum allowed width for a window. \*/  
**$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 value or error.

### Description

Queries maximum allowed width for a window.  
The maximum/minimum window sizes define how much a window can be resized by the user.  
### Examples

Query maximum width for current window:

 MBS ( "Window.GetMaxWidth"; Get(WindowName) )  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.GetMaxHeight](WindowGetMaxHeight.md)
- [Window.GetMinWidth](WindowGetMinWidth.md)
- [Window.GetWidth](WindowGetWidth.md)
- [Window.SetMaxHeight](WindowSetMaxHeight.md)
- [Window.SetMaxWidth](WindowSetMaxWidth.md)
- [Window.SetMinWidth](WindowSetMinWidth.md)

This function is free to use.

Created 11st December 2016 , last changed 11st December 2016

  
[Window.GetMaxHeight](WindowGetMaxHeight.md) - [Window.GetMinHeight](WindowGetMinHeight.md)

[HTML Version](WindowGetMaxWidth.shtml)