RadzenHtmlEditorImage Class

A tool which inserts and uploads images in a RadzenHtmlEditor.

Inheritance

Object

ComponentBase

RadzenHtmlEditorButtonBase

RadzenHtmlEditorImage

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

RadzenHtmlEditorButtonBase.OnInitialized

RadzenHtmlEditorButtonBase.Dispose

RadzenHtmlEditorButtonBase.Editor

RadzenHtmlEditorButtonBase.CommandName

RadzenHtmlEditorButtonBase.Shortcut

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.SetParametersAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenHtmlEditorImage : RadzenHtmlEditorButtonBase, IComponent, IHandleEvent, IHandleAfterRender

Examples

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

Constructors

RadzenHtmlEditorImagelink

A tool which inserts and uploads images in a RadzenHtmlEditor.

Declaration
public RadzenHtmlEditorImage()

Properties

AltTextlink

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
public string AltText { get; set; }
Property Value
Type Description
stringSpecifies the text of the label suggesting the user to enter a alternative text (alt) for the image. Set to "Alternative text" by default.

CancelTextlink

Specifies the text of button which cancels image insertion and closes the dialog. Set to "Cancel" by default.

Declaration
public string CancelText { get; set; }
Property Value
Type Description
stringSpecifies the text of button which cancels image insertion and closes the dialog. Set to "Cancel" by default.

HeightTextlink

Specifies the text of label for image height. Set to "Image Height" by default.

Declaration
public string HeightText { get; set; }
Property Value
Type Description
stringSpecifies the text of label for image height. Set to "Image Height" by default.

OkTextlink

Specifies the text of button which inserts the image. Set to "OK" by default.

Declaration
public string OkText { get; set; }
Property Value
Type Description
stringSpecifies the text of button which inserts the image. Set to "OK" by default.

SelectTextlink

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
public string SelectText { get; set; }
Property Value
Type Description
stringSpecifies the text of the label suggesting the user to select a file for upload. Set to "Select image file to upload" by default.

ShowAltlink

Specifies whether to show the alternative text section. Set it to false to hide it. Default value is true.

Declaration
public bool ShowAlt { get; set; }
Property Value
Type Description
boolSpecifies whether to show the alternative text section. Set it to false to hide it. Default value is true.

ShowHeightlink

Specifies whether to show the image height section. Set it to false to hide it. Default value is true.

Declaration
public bool ShowHeight { get; set; }
Property Value
Type Description
boolSpecifies whether to show the image height section. Set it to false to hide it. Default value is true.

ShowSrclink

Specifies whether to show the web address section. Set it to false to hide it. Default value is true.

Declaration
public bool ShowSrc { get; set; }
Property Value
Type Description
boolSpecifies whether to show the web address section. Set it to false to hide it. Default value is true.

ShowWidthlink

Specifies whether to show the image width section. Set it to false to hide it. Default value is true.

Declaration
public bool ShowWidth { get; set; }
Property Value
Type Description
boolSpecifies whether to show the image width section. Set it to false to hide it. Default value is true.

Titlelink

Specifies the title (tooltip) displayed when the user hovers the tool. Set to "Insert image" by default.

Declaration
public string Title { get; set; }
Property Value
Type Description
stringSpecifies the title (tooltip) displayed when the user hovers the tool. Set to "Insert image" by default.

UploadChooseTextlink

Specifies the text of the upload label. Set to "Browse" by default.

Declaration
public string UploadChooseText { get; set; }
Property Value
Type Description
stringSpecifies the text of the upload label. Set to "Browse" by default.

UrlTextlink

Specifies the text of the label suggesting the user to enter a web address. Set to "or enter a web address" by default.

Declaration
public string UrlText { get; set; }
Property Value
Type Description
stringSpecifies the text of the label suggesting the user to enter a web address. Set to "or enter a web address" by default.

WidthTextlink

Specifies the text of label for image width. Set to "Image Width" by default.

Declaration
public string WidthText { get; set; }
Property Value
Type Description
stringSpecifies the text of label for image width. Set to "Image Width" by default.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

OnClicklink

Declaration
protected override Task OnClick()
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙