TextView.GetAutoResizingMask
----------------------------

Queries auto resizing mask.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TextView](component_TextView.md) | [9.2](newinversion92.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "TextView.GetAutoResizingMask"; TextView ) 

**MBS**( **"TextView.GetAutoResizingMask";** /\* Queries auto resizing mask. \*/  
**$TextView**) /\* The reference number to the text view. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| TextView | The reference number to the text view. | $textview |

### Result

Returns number or error.

### Description

Queries auto resizing mask.  
This defines whether view changes its size based on the surrounding window.  
  
| Name | Value | Description |
|---|---|---|
| NotSizable | 0 | The view cannot be resized. |
| MinXMargin | 1 | The left margin between the view and its superview is flexible. |
| WidthSizable | 2 | The view’s width is flexible. |
| MaxXMargin | 4 | The right margin between the view and its superview is flexible. |
| MinYMargin | 8 | The bottom margin between the view and its superview is flexible. |
| HeightSizable | 16 | The view’s height is flexible. |
| MaxYMargin | 32 | The top margin between the view and its superview is flexible. |

  
e.g. the value 18 means the view can resize both horizontally and vertically with the parent view (window).  
### See also

- [AVPlayer.GetAutoResizingMask](AVPlayerGetAutoResizingMask.md)
- [AVPlayer.SetAutoResizingMask](AVPlayerSetAutoResizingMask.md)
- [DragDrop.GetAutoResizingMask](DragDropGetAutoResizingMask.md)
- [MapView.GetAutoResizingMask](MapViewGetAutoResizingMask.md)
- [MapView.SetAutoResizingMask](MapViewSetAutoResizingMask.md)
- [Preview.GetAutoResizingMask](PreviewGetAutoResizingMask.md)
- [Preview.SetAutoResizingMask](PreviewSetAutoResizingMask.md)
- [TextView.SetAutoResizingMask](TextViewSetAutoResizingMask.md)
- [WebView.GetAutoResizingMask](WebViewGetAutoResizingMask.md)
- [WebView.SetAutoResizingMask](WebViewSetAutoResizingMask.md)

This function checks for a license.

Created 15th April 2019 , last changed 1st March 2021

  
[TextView.GetAutoCorrectionEnabled](TextViewGetAutoCorrectionEnabled.md) - [TextView.GetHTMLText](TextViewGetHTMLText.md)

[HTML Version](TextViewGetAutoResizingMask.shtml)