Class RadzenImage
RadzenImage component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenImage : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<RadzenImage Path="someimage.png" />
Constructors
RadzenImage()
RadzenImage component.
Declaration
public RadzenImage()
Examples
<RadzenImage Path="someimage.png" />
Properties
AlternateText
Gets or sets the text.
Declaration
[Parameter]
public string AlternateText { get; set; }
Property Value
Type | Description |
---|---|
string | The text. |
Click
Gets or sets the click callback.
Declaration
[Parameter]
public EventCallback<MouseEventArgs> Click { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<MouseEventArgs> | The click callback. |
Path
Gets or sets the path.
Declaration
[Parameter]
public string Path { get; set; }
Property Value
Type | Description |
---|---|
string | The path. |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenImage component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
OnClick(MouseEventArgs)
Handles the Click event.
Declaration
protected Task OnClick(MouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | args | The MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
Task |