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
AlternativeText
Gets or sets the alternative text.
[DomName("alt")]
string? AlternativeText { get; set; }
Property Value
CrossOrigin
Gets or sets the cross-origin attribute.
[DomName("crossOrigin")]
string? CrossOrigin { get; set; }
Property Value
DisplayHeight
Gets or sets the displayed width of the image element.
[DomName("height")]
int DisplayHeight { get; set; }
Property Value
DisplayWidth
Gets or sets the displayed width of the image element.
[DomName("width")]
int DisplayWidth { get; set; }
Property Value
IsCompleted
Gets if the image is completely available.
[DomName("complete")]
bool IsCompleted { get; }
Property Value
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
OriginalHeight
Gets the height of the image.
[DomName("naturalHeight")]
int OriginalHeight { get; }
Property Value
OriginalWidth
Gets the width of the image.
[DomName("naturalWidth")]
int OriginalWidth { get; }
Property Value
Sizes
Gets or sets the sizes to responsively.
[DomName("sizes")]
string? Sizes { get; set; }
Property Value
Source
Gets or sets the image source.
[DomName("src")]
string? Source { get; set; }
Property Value
SourceSet
Gets or sets the image candidates for higher density images.
[DomName("srcset")]
string? SourceSet { get; set; }
Property Value
UseMap
Gets or sets the usemap attribute, which indicates that the image has an associated image map.
[DomName("useMap")]
string? UseMap { get; set; }