HtmlEmbedElement
sealed class HtmlEmbedElement : HtmlElement, IHtmlEmbedElement, IHtmlElement, IElement, INode, IEventTarget, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle
Represents the embed element.
using AngleSharp.Dom.Css;
using AngleSharp.Html;
namespace AngleSharp.Dom.Html
{
internal sealed class HtmlEmbedElement : HtmlElement, IHtmlEmbedElement, IHtmlElement, IElement, INode, IEventTarget, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle
{
public string Source {
get {
return GetAttribute(AttributeNames.Src);
}
set {
SetAttribute(AttributeNames.Src, value);
}
}
public string Type {
get {
return GetAttribute(AttributeNames.Type);
}
set {
SetAttribute(AttributeNames.Type, value);
}
}
public string DisplayWidth {
get {
return GetAttribute(AttributeNames.Width);
}
set {
SetAttribute(AttributeNames.Width, value);
}
}
public string DisplayHeight {
get {
return GetAttribute(AttributeNames.Height);
}
set {
SetAttribute(AttributeNames.Height, value);
}
}
public HtmlEmbedElement(Document owner)
: base(owner, Tags.Embed, NodeFlags.SelfClosing | NodeFlags.Special)
{
}
}
}