HtmlObjectElement Class
https://html.spec.whatwg.org/multipage/iframe-embed-object.html#htmlobjectelement
public sealed class HtmlObjectElement : HtmlElement- Inheritance
HtmlElementHtmlObjectElement
Properties
| Name | Description |
|---|---|
| Align | Gets or sets the value of the align content attribute. |
| Archive | Gets or sets the value of the archive content attribute. |
| Border | Gets or sets the value of the border content attribute. |
| Code | Gets or sets the value of the code content attribute. |
| CodeBase | Gets or sets the codebase content attribute, as a URL resolved against the base URL of the document. |
| CodeType | Gets or sets the value of the codetype content attribute. |
| ContentDocument | https://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentdocument |
| ContentWindow | https://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentwindow |
| Data | Gets or sets the data content attribute, as a URL resolved against the base URL of the document. |
| Declare | Gets or sets a value indicating whether the element has the declare content attribute. |
| Form | Gets the form owner of the element, or null when it has none. |
| Height | Gets or sets the value of the height content attribute. |
| Hspace | Gets or sets the value of the hspace content attribute. |
| Name | Gets or sets the value of the name content attribute. |
| Standby | Gets or sets the value of the standby content attribute. |
| Type | Gets or sets the value of the type content attribute. |
| UseMap | Gets or sets the value of the usemap content attribute. |
| ValidationMessage | Gets the error message that would be shown to the user if the element is invalid, or an empty string. |
| Validity | Gets the ValidityState object that describes the validity of the element. |
| Vspace | Gets or sets the value of the vspace content attribute. |
| Width | Gets or sets the value of the width content attribute. |
| WillValidate | Gets a value indicating whether the element is a candidate for constraint validation. |
Align
HtmlElements.g.csGets or sets the value of the align content attribute.
public string Align { get; set; }Archive
HtmlElements.g.csGets or sets the value of the archive content attribute.
public string Archive { get; set; }Border
HtmlElements.g.csGets 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; }CodeBase
HtmlElements.g.csGets or sets the codebase content attribute, as a URL resolved against the base URL of the document.
public string CodeBase { get; set; }Property value
See also
CodeType
HtmlElements.g.csGets or sets the value of the codetype content attribute.
public string CodeType { get; set; }Property value
See also
ContentDocument
EmbedAndObjectLoading.cshttps://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentdocument
public Document? ContentDocument { get; }ContentWindow
EmbedAndObjectLoading.cshttps://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; }Property value
See also
Declare
HtmlElements.g.csGets 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; }Height
HtmlElements.g.csGets or sets the value of the height content attribute.
public string Height { get; set; }Property value
See also
Hspace
HtmlElements.g.csGets 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; }Property value
See also
Standby
HtmlElements.g.csGets 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; }Property value
See also
UseMap
HtmlElements.g.csGets or sets the value of the usemap content attribute.
public string UseMap { get; set; }ValidationMessage
FormControlMembers.csGets the error message that would be shown to the user if the element is invalid, or an empty string.
public string ValidationMessage { get; }Validity
FormControlMembers.csGets the ValidityState object that describes the validity of the element.
public ValidityState Validity { get; }Vspace
HtmlElements.g.csGets or sets the value of the vspace content attribute.
public uint Vspace { get; set; }Width
HtmlElements.g.csGets or sets the value of the width content attribute.
public string Width { get; set; }Property value
See also
WillValidate
FormControlMembers.csGets a value indicating whether the element is a candidate for constraint validation.
public bool WillValidate { get; }Methods
| Name | Description |
|---|---|
| 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.csReturns whether the element satisfies its constraints, firing an invalid event when it does not.
public bool CheckValidity()GetSvgDocument()
EmbedAndObjectLoading.cshttps://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-getsvgdocument
public Document? GetSvgDocument()ReportValidity()
FormControlMembers.csChecks whether the element satisfies its constraints, firing an invalid event when it does not.
public bool ReportValidity()SetCustomValidity(string)
FormControlMembers.csSets the custom validity error message of the element; an empty string clears the custom error.