# IWisejEditorService

Namespace: **Wisej.Core**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides an interface for a [UITypeEditor](https://github.com/iceteagroup/wisej-docs-api/blob/v4.0/api?q=wisej.web.uitypeeditor) to display an editor form or a control in a drop-down area from a property grid control.

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

```csharp
public interface IWisejEditorService
```

{% endtab %}

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

```visual-basic
Public Interface IWisejEditorService
```

{% endtab %}
{% endtabs %}

## Methods

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

Closes any previously opened drop down control area.

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

Displays the specified control in a modal drop down panel below a value field of the property grid that provides this service and waits for the user to close the drop down.

| Parameter   | Type                                                            | Description                                                                                               |
| ----------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| **control** | [Control](https://docs.wisej.com/api/wisej.web/general/control) | The [Control](https://docs.wisej.com/api/wisej.web/general/control) to show in the modal drop down panel. |

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

Displays the specified control in an asynchronous modal drop down panel below a value field of the property grid that provides this service.

| Parameter   | Type                                                            | Description                                                                                                            |
| ----------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| **control** | [Control](https://docs.wisej.com/api/wisej.web/general/control) | The [Control](https://docs.wisej.com/api/wisej.web/general/control) to show in the asynchronous modal drop down panel. |

**Returns:** [Task](https://docs.microsoft.com/dotnet/api/system.threading.tasks.task). A [Task](https://docs.microsoft.com/dotnet/api/system.threading.tasks.task) that the user code that await on.

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

Shows the specified [Form](https://docs.wisej.com/api/wisej.web/containers/form) and returns its [DialogResult](https://docs.wisej.com/api/wisej.web/containers/form#dialogresult) when the user closes it.

| Parameter  | Type                                                         | Description                                                                                       |
| ---------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
| **dialog** | [Form](https://docs.wisej.com/api/wisej.web/containers/form) | The modal [Form](https://docs.wisej.com/api/wisej.web/containers/form) to display asynchronously. |

**Returns:** [DialogResult](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.dialogresult). A [DialogResult](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.dialogresult) indicating the result returned by the *dialog* .

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

Shows the specified [Form](https://docs.wisej.com/api/wisej.web/containers/form) asynchronously and returns its [DialogResult](https://docs.wisej.com/api/wisej.web/containers/form#dialogresult) when the user closes it.

| Parameter  | Type                                                         | Description                                                                                       |
| ---------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
| **dialog** | [Form](https://docs.wisej.com/api/wisej.web/containers/form) | The modal [Form](https://docs.wisej.com/api/wisej.web/containers/form) to display asynchronously. |

**Returns:** [Task\<DialogResult>](https://docs.microsoft.com/dotnet/api/system.threading.tasks.task-1). A [DialogResult](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.dialogresult) wrapped in a [Task](https://docs.microsoft.com/dotnet/api/system.threading.tasks.task) indicating the result returned by the *dialog* .
