HtmlObjectElement Class

https://html.spec.whatwg.org/multipage/iframe-embed-object.html#htmlobjectelement

public sealed class HtmlObjectElement : HtmlElement
Inheritance
HtmlElement HtmlObjectElement

Properties

NameDescription
AlignGets or sets the value of the align content attribute.
ArchiveGets or sets the value of the archive content attribute.
BorderGets or sets the value of the border content attribute.
CodeGets or sets the value of the code content attribute.
CodeBaseGets or sets the codebase content attribute, as a URL resolved against the base URL of the document.
CodeTypeGets or sets the value of the codetype content attribute.
ContentDocumenthttps://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentdocument
ContentWindowhttps://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentwindow
DataGets or sets the data content attribute, as a URL resolved against the base URL of the document.
DeclareGets or sets a value indicating whether the element has the declare content attribute.
FormGets the form owner of the element, or null when it has none.
HeightGets or sets the value of the height content attribute.
HspaceGets or sets the value of the hspace content attribute.
NameGets or sets the value of the name content attribute.
StandbyGets or sets the value of the standby content attribute.
TypeGets or sets the value of the type content attribute.
UseMapGets or sets the value of the usemap content attribute.
ValidationMessageGets the error message that would be shown to the user if the element is invalid, or an empty string.
ValidityGets the ValidityState object that describes the validity of the element.
VspaceGets or sets the value of the vspace content attribute.
WidthGets or sets the value of the width content attribute.
WillValidateGets a value indicating whether the element is a candidate for constraint validation.

Gets or sets the value of the align content attribute.

public string Align { get; set; }

Gets or sets the value of the archive content attribute.

public string Archive { get; set; }

Gets or sets the value of the border content attribute.

public string Border { get; set; }

Gets or sets the value of the code content attribute.

public string Code { get; set; }

Gets or sets the codebase content attribute, as a URL resolved against the base URL of the document.

public string CodeBase { get; set; }

Gets or sets the value of the codetype content attribute.

public string CodeType { get; set; }

https://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentdocument

public Document? ContentDocument { get; }

https://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentwindow

public Window? ContentWindow { get; }

Gets or sets the data content attribute, as a URL resolved against the base URL of the document.

public string Data { get; set; }

Gets or sets a value indicating whether the element has the declare content attribute.

public bool Declare { get; set; }

Gets the form owner of the element, or null when it has none.

public HtmlFormElement? Form { get; }

Gets or sets the value of the height content attribute.

public string Height { get; set; }

Gets or sets the value of the hspace content attribute.

public uint Hspace { get; set; }

Gets or sets the value of the name content attribute.

public string Name { get; set; }

Gets or sets the value of the standby content attribute.

public string Standby { get; set; }

Gets or sets the value of the type content attribute.

public string Type { get; set; }

Gets or sets the value of the usemap content attribute.

public string UseMap { get; set; }

ValidationMessage

FormControlMembers.cs

Gets the error message that would be shown to the user if the element is invalid, or an empty string.

public string ValidationMessage { get; }

Gets the ValidityState object that describes the validity of the element.

public ValidityState Validity { get; }

Gets or sets the value of the vspace content attribute.

public uint Vspace { get; set; }

Gets or sets the value of the width content attribute.

public string Width { get; set; }

Gets a value indicating whether the element is a candidate for constraint validation.

public bool WillValidate { get; }

Methods

NameDescription
CheckValidity()Returns whether the element satisfies its constraints, firing an invalid event when it does not.
GetSvgDocument()https://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-getsvgdocument
ReportValidity()Checks whether the element satisfies its constraints, firing an invalid event when it does not.
SetCustomValidity(string)Sets the custom validity error message of the element; an empty string clears the custom error.

CheckValidity()

FormControlMembers.cs

Returns whether the element satisfies its constraints, firing an invalid event when it does not.

public bool CheckValidity()

GetSvgDocument()

EmbedAndObjectLoading.cs

https://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-getsvgdocument

public Document? GetSvgDocument()

ReportValidity()

FormControlMembers.cs

Checks whether the element satisfies its constraints, firing an invalid event when it does not.

public bool ReportValidity()

SetCustomValidity(string)

FormControlMembers.cs

Sets the custom validity error message of the element; an empty string clears the custom error.

public void SetCustomValidity(string error)