# XSalToolbox

Namespace: **PPJ.Runtime.XSal**

Assembly: **PPJ.Runtime.XSal.49** (4.9.0.0)

{% tabs %}
{% tab title="C#" %}

```csharp
public class XSalToolbox : SalDialogBox, IMessageFilter
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class XSalToolbox
    Inherits SalDialogBox
    Implements IMessageFilter
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)XSalToolbox()

## Properties

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Flags

[ToolboxFlags](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox): Returns/Sets the XSalToolbox flags.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Position

[ToolboxPositions](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox): Returns/Sets the XSalToolbox position.

## Methods

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media)Create(name, form, position, flags)

Creates the specified toolbox.

| Parameter    | Type                                                                                                              | Description |
| ------------ | ----------------------------------------------------------------------------------------------------------------- | ----------- |
| **name**     | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                               |             |
| **form**     | [Form](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form)                                     |             |
| **position** | [ToolboxPositions](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) |             |
| **flags**    | [ToolboxFlags](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox)     |             |

**Returns:** [XSalToolbox](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media)FromHandle(handle)

Returns the control associated with the handle.

| Parameter  | Type                                                                                                             | Description |
| ---------- | ---------------------------------------------------------------------------------------------------------------- | ----------- |
| **handle** | [SalWindowHandle](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) |             |

**Returns:** [XSalToolbox](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media)FromName(form, name)

Finds the toolbox control in the parent.

| Parameter | Type                                                                          | Description |
| --------- | ----------------------------------------------------------------------------- | ----------- |
| **form**  | [Form](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form) |             |
| **name**  | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)           |             |

**Returns:** [XSalToolbox](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media)SetMetrics(value, type)

Saves metrics values for the XSalToolbar class.

| Parameter | Type                                                                                                            | Description |
| --------- | --------------------------------------------------------------------------------------------------------------- | ----------- |
| **value** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                               |             |
| **type**  | [ToolbarMetrics](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) |             |

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)UpdateLayout()

Updates the layout of the child controls of the toolbox and of the parent toolbar.

## Implements

| Name                                                                                                        | Description |
| ----------------------------------------------------------------------------------------------------------- | ----------- |
| [ISalWindow](https://desktop-api.iceteagroup.com/ppj.runtime.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) |             |
