# RadzenHtmlEditorImage Class

A tool which inserts and uploads images in a [RadzenHtmlEditor](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenHtmlEditor.md).

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- RadzenHtmlEditorButtonBase
- RadzenHtmlEditorImage

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenHtmlEditorImage : RadzenHtmlEditorButtonBase, IComponent, IHandleEvent, IHandleAfterRender
```

## Examples

```razor
<RadzenHtmlEditor @bind-Value=@html>
 <RadzenHtmlEditorImage />
</RadzenHtmlEdito>
@code {
  string html = "@lt;strong>Hello</strong> world!";
}
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenHtmlEditorImage()` | A tool which inserts and uploads images in a [RadzenHtmlEditor](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenHtmlEditor.md). |

## Properties

| Property | Type | Description |
|------|------|-------------|
| AltText | `string` | Specifies the text of the label suggesting the user to enter a alternative text (alt) for the image. Set to "Alternative text" by default. |
| CancelText | `string` | Specifies the text of button which cancels image insertion and closes the dialog. Set to "Cancel" by default. |
| HeightText | `string` | Specifies the text of label for image height. Set to "Image Height" by default. |
| OkText | `string` | Specifies the text of button which inserts the image. Set to "OK" by default. |
| SelectText | `string` | Specifies the text of the label suggesting the user to select a file for upload. Set to "Select image file to upload" by default. |
| ShowAlt | `bool` | Specifies whether to show the alternative text section. Set it to false to hide it. Default value is true. |
| ShowHeight | `bool` | Specifies whether to show the image height section. Set it to false to hide it. Default value is true. |
| ShowSrc | `bool` | Specifies whether to show the web address section. Set it to false to hide it. Default value is true. |
| ShowWidth | `bool` | Specifies whether to show the image width section. Set it to false to hide it. Default value is true. |
| Title | `string` | Specifies the title (tooltip) displayed when the user hovers the tool. Set to "Insert image" by default. |
| UploadChooseText | `string` | Specifies the text of the upload label. Set to "Browse" by default. |
| UrlText | `string` | Specifies the text of the label suggesting the user to enter a web address. Set to "or enter a web address" by default. |
| WidthText | `string` | Specifies the text of label for image width. Set to "Image Width" by default. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `OnClick()` | `Task` |  |

## Inherited Members

- From RadzenHtmlEditorButtonBase: CommandName, Dispose, Editor, Localize, OnInitialized, Shortcut
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, SetParametersAsync, ShouldRender, StateHasChanged

