Class RadzenHtmlEditorImage
A tool which inserts and uploads images in a RadzenHtmlEditor.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenHtmlEditorImage : RadzenHtmlEditorButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<RadzenHtmlEditor @bind-Value=@html>
<RadzenHtmlEditorImage />
</RadzenHtmlEdito>
@code {
string html = "@lt;strong>Hello</strong> world!";
}
Constructors
RadzenHtmlEditorImage()
A tool which inserts and uploads images in a RadzenHtmlEditor.
Declaration
public RadzenHtmlEditorImage()
Examples
<RadzenHtmlEditor @bind-Value=@html>
<RadzenHtmlEditorImage />
</RadzenHtmlEdito>
@code {
string html = "@lt;strong>Hello</strong> world!";
}
Properties
AltText
Specifies the text of the label suggesting the user to enter a alternative text (alt) for the image. Set to "Alternative text" by default.
Declaration
[Parameter]
public string AltText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CancelText
Specifies the text of button which cancels image insertion and closes the dialog. Set to "Cancel" by default.
Declaration
[Parameter]
public string CancelText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HeightText
Specifies the text of label for image height. Set to "Image Height" by default.
Declaration
[Parameter]
public string HeightText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OkText
Specifies the text of button which inserts the image. Set to "OK" by default.
Declaration
[Parameter]
public string OkText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SelectText
Specifies the text of the label suggesting the user to select a file for upload. Set to "Select image file to upload" by default.
Declaration
[Parameter]
public string SelectText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ShowAlt
Specifies whether to show the alternative text section. Set it to false to hide it. Default value is true.
Declaration
[Parameter]
public bool ShowAlt { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowHeight
Specifies whether to show the image height section. Set it to false to hide it. Default value is true.
Declaration
[Parameter]
public bool ShowHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowSrc
Specifies whether to show the web address section. Set it to false to hide it. Default value is true.
Declaration
[Parameter]
public bool ShowSrc { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowWidth
Specifies whether to show the image width section. Set it to false to hide it. Default value is true.
Declaration
[Parameter]
public bool ShowWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Title
Specifies the title (tooltip) displayed when the user hovers the tool. Set to "Insert image" by default.
Declaration
[Parameter]
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UploadChooseText
Specifies the text of the upload label. Set to "Browse" by default.
Declaration
[Parameter]
public string UploadChooseText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UrlText
Specifies the text of the label suggesting the user to enter a web address. Set to "or enter a web address" by default.
Declaration
[Parameter]
public string UrlText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WidthText
Specifies the text of label for image width. Set to "Image Width" by default.
Declaration
[Parameter]
public string WidthText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
BuildRenderTree(RenderTreeBuilder)
A tool which inserts and uploads images in a RadzenHtmlEditor.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnClick()
Handles the click event of the button. Executes the command.
Declaration
protected override Task OnClick()
Returns
| Type | Description |
|---|---|
| Task |