Table of Contents

Interface IHtmlImageElement

Namespace
AngleSharp.Html.Dom
Assembly
AngleSharp.dll

Represents the image HTML element.

[DomName("HTMLImageElement")]
public interface IHtmlImageElement : IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers, ILoadableElement
Inherited Members
Extension Methods

Properties

ActualSource

Gets the actual used image source.

[DomName("currentSrc")]
string? ActualSource { get; }

Property Value

string

AlternativeText

Gets or sets the alternative text.

[DomName("alt")]
string? AlternativeText { get; set; }

Property Value

string

CrossOrigin

Gets or sets the cross-origin attribute.

[DomName("crossOrigin")]
string? CrossOrigin { get; set; }

Property Value

string

DisplayHeight

Gets or sets the displayed width of the image element.

[DomName("height")]
int DisplayHeight { get; set; }

Property Value

int

DisplayWidth

Gets or sets the displayed width of the image element.

[DomName("width")]
int DisplayWidth { get; set; }

Property Value

int

IsCompleted

Gets if the image is completely available.

[DomName("complete")]
bool IsCompleted { get; }

Property Value

bool

IsMap

Gets or sets if the image element is a map. The attribute must not be specified on an element that does not have an ancestor a element with an href attribute.

[DomName("isMap")]
bool IsMap { get; set; }

Property Value

bool

OriginalHeight

Gets the height of the image.

[DomName("naturalHeight")]
int OriginalHeight { get; }

Property Value

int

OriginalWidth

Gets the width of the image.

[DomName("naturalWidth")]
int OriginalWidth { get; }

Property Value

int

Sizes

Gets or sets the sizes to responsively.

[DomName("sizes")]
string? Sizes { get; set; }

Property Value

string

Source

Gets or sets the image source.

[DomName("src")]
string? Source { get; set; }

Property Value

string

SourceSet

Gets or sets the image candidates for higher density images.

[DomName("srcset")]
string? SourceSet { get; set; }

Property Value

string

UseMap

Gets or sets the usemap attribute, which indicates that the image has an associated image map.

[DomName("useMap")]
string? UseMap { get; set; }

Property Value

string