> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSWindowPosSize

> Window and dialog position and size settings.

Window and dialog position and size settings.

## Constructors

### NSWindowPosSize()

```crmscript theme={null}
NSWindowPosSize
```

Initializes a new instance of the NSWindowPosSize class.

## Methods

## GetAssociateId()

```crmscript theme={null}
Integer GetAssociateId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Associate ID of the Associate/Person owning this window setting.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer associateId = thing.GetAssociateId();
```

## GetExtraId()

```crmscript theme={null}
Integer GetExtraId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Spare ID, not yet in use.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer extraId = thing.GetExtraId();
```

## GetExtraInfo()

```crmscript theme={null}
String GetExtraInfo()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Extra information\* show state, or whatever is required.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
String extraInfo = thing.GetExtraInfo();
```

## GetHeight()

```crmscript theme={null}
Integer GetHeight()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The height of the widget.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer height = thing.GetHeight();
```

## GetLeftX()

```crmscript theme={null}
Integer GetLeftX()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - X of origin, left edge of widget.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer leftX = thing.GetLeftX();
```

## GetOwnerWindow()

```crmscript theme={null}
String GetOwnerWindow()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The dialog, panel or whatever that owns this record.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
String ownerWindow = thing.GetOwnerWindow();
```

## GetPersonId()

```crmscript theme={null}
Integer GetPersonId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Person ID of the associate owning this window setting.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer personId = thing.GetPersonId();
```

## GetState()

```crmscript theme={null}
Integer GetState()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Normal = 0, Maximized = 1, Minimized = 2. See \<xref href="CRMScript.NetServer.ShowState" data-throw-if-not-resolved="false">\</xref>.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer state = thing.GetState();
```

## GetUpperY()

```crmscript theme={null}
Integer GetUpperY()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Y of origin, upper edge of widget.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer upperY = thing.GetUpperY();
```

## GetWidth()

```crmscript theme={null}
Integer GetWidth()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The width of the widget.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer width = thing.GetWidth();
```

## GetWindowPosSizeId()

```crmscript theme={null}
Integer GetWindowPosSizeId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer windowPosSizeId = thing.GetWindowPosSizeId();
```

## SetAssociateId(Integer)

```crmscript theme={null}
Void SetAssociateId(Integer associateId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer associateId;
thing.SetAssociateId(associateId);
```

## SetExtraId(Integer)

```crmscript theme={null}
Void SetExtraId(Integer extraId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer extraId;
thing.SetExtraId(extraId);
```

## SetExtraInfo(String)

```crmscript theme={null}
Void SetExtraInfo(String extraInfo)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
String extraInfo;
thing.SetExtraInfo(extraInfo);
```

## SetHeight(Integer)

```crmscript theme={null}
Void SetHeight(Integer height)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer height;
thing.SetHeight(height);
```

## SetLeftX(Integer)

```crmscript theme={null}
Void SetLeftX(Integer leftX)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer leftX;
thing.SetLeftX(leftX);
```

## SetOwnerWindow(String)

```crmscript theme={null}
Void SetOwnerWindow(String ownerWindow)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
String ownerWindow;
thing.SetOwnerWindow(ownerWindow);
```

## SetPersonId(Integer)

```crmscript theme={null}
Void SetPersonId(Integer personId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer personId;
thing.SetPersonId(personId);
```

## SetState(Integer)

```crmscript theme={null}
Void SetState(Integer state)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer state;
thing.SetState(state);
```

## SetUpperY(Integer)

```crmscript theme={null}
Void SetUpperY(Integer upperY)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer upperY;
thing.SetUpperY(upperY);
```

## SetWidth(Integer)

```crmscript theme={null}
Void SetWidth(Integer width)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer width;
thing.SetWidth(width);
```

## SetWindowPosSizeId(Integer)

```crmscript theme={null}
Void SetWindowPosSizeId(Integer windowPosSizeId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWindowPosSize thing;
Integer windowPosSizeId;
thing.SetWindowPosSizeId(windowPosSizeId);
```


## Related topics

- [NSConfigurationAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSConfigurationAgent.md)
- [Save Window Pos Size](/en/api/reference/restful/agent/configuration_agent/save-window-pos-size.md)
- [Delete Window Pos Size](/en/api/reference/restful/agent/configuration_agent/delete-window-pos-size.md)
- [Get Window Pos Size](/en/api/reference/restful/agent/configuration_agent/get-window-pos-size.md)
- [Get Window Pos Size List](/en/api/reference/restful/agent/configuration_agent/get-window-pos-size-list.md)
- [SuperOffice.WebApi.Data.WindowPosSize](/en/api/reference/webapi/SuperOffice.WebApi.Data.WindowPosSize.md)
