# XSalToolbox

Namespace: **PPJ.Runtime.XSal**

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

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

```csharp
public class XSalToolbox : SalDialogBox
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)XSalToolbox()

## Properties

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Position

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

## Methods

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FuqnVoSwYo95wh3jzDFPE%2Fstatic.png?alt=media\&token=ac9ad63b-db19-46a9-a325-36647205a41a)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.wisej.com/api?q=wisej.web.form)                                                       |             |
| **position** | [ToolboxPositions](https://web-api.iceteagroup.com/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) |             |
| **flags**    | [ToolboxFlags](https://web-api.iceteagroup.com/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox)     |             |

**Returns:** [XSalToolbox](https://docs.wisej.com/extensions/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox.md).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FuqnVoSwYo95wh3jzDFPE%2Fstatic.png?alt=media\&token=ac9ad63b-db19-46a9-a325-36647205a41a)FromHandle(handle)

Returns the control associated with the handle.

| Parameter  | Type                                                                                                 | Description |
| ---------- | ---------------------------------------------------------------------------------------------------- | ----------- |
| **handle** | [SalWindowHandle](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salwindowhandle.md) |             |

**Returns:** [XSalToolbox](https://docs.wisej.com/extensions/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox.md).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FuqnVoSwYo95wh3jzDFPE%2Fstatic.png?alt=media\&token=ac9ad63b-db19-46a9-a325-36647205a41a)FromName(form, name)

Finds the toolbox control in the parent.

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **form**  | [Form](https://docs.wisej.com/api?q=wisej.web.form)                 |             |
| **name**  | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) |             |

**Returns:** [XSalToolbox](https://docs.wisej.com/extensions/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox.md).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FuqnVoSwYo95wh3jzDFPE%2Fstatic.png?alt=media\&token=ac9ad63b-db19-46a9-a325-36647205a41a)GetMetrics(type)

Returns metrics values for the XSalToolbar class.

| Parameter | Type                                                                                                    | Description                                                                                                        |
| --------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| **type**  | [ToolbarMetrics](https://web-api.iceteagroup.com/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) | [ToolbarMetrics](https://web-api.iceteagroup.com/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) to return. |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FuqnVoSwYo95wh3jzDFPE%2Fstatic.png?alt=media\&token=ac9ad63b-db19-46a9-a325-36647205a41a)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)                                       | The new value.                                                                                                     |
| **type**  | [ToolbarMetrics](https://web-api.iceteagroup.com/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) | [ToolbarMetrics](https://web-api.iceteagroup.com/ppj.web.xsal.49/controls/ppj.runtime.xsal.xsaltoolbox) to change. |

## Implements

| Name                                                                                                    | Description |
| ------------------------------------------------------------------------------------------------------- | ----------- |
| [ISalWindow](https://docs.wisej.com/extensions/ppj.web.49/interfaces/ppj.runtime.windows.isalwindow.md) |             |
