Table of Contents

Class MudImage

Namespace
MudBlazor
Assembly
MudBlazor.dll
public class MudImage : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudImage
Implements
Inherited Members
Extension Methods

Constructors

MudImage()

public MudImage()

Properties

Alt

Specifies an alternate text for the image.

[Parameter]
[Category("Behavior")]
public string? Alt { get; set; }

Property Value

string

Classname

protected string Classname { get; }

Property Value

string

Elevation

The higher the number, the heavier the drop-shadow.

[Parameter]
[Category("Appearance")]
public int Elevation { get; set; }

Property Value

int

Fluid

Applies the fluid class so the image scales with the parent width.

[Parameter]
[Category("Behavior")]
public bool Fluid { get; set; }

Property Value

bool

Height

Specifies the height of the image in px.

[Parameter]
[Category("Appearance")]
public int? Height { get; set; }

Property Value

int?

ObjectFit

Controls how the image should be resized.

[Parameter]
[Category("Appearance")]
public ObjectFit ObjectFit { get; set; }

Property Value

ObjectFit

ObjectPosition

Controls how the image should positioned within its container.

[Parameter]
[Category("Appearance")]
public ObjectPosition ObjectPosition { get; set; }

Property Value

ObjectPosition

Src

Specifies the path to the image.

[Parameter]
[Category("Behavior")]
public string? Src { get; set; }

Property Value

string

Width

Specifies the width of the image in px.

[Parameter]
[Category("Appearance")]
public int? Width { get; set; }

Property Value

int?

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder