HtmlTemplateElement Class
https://html.spec.whatwg.org/multipage/scripting.html#htmltemplateelement
public sealed class HtmlTemplateElement : HtmlElement- Inheritance
HtmlElementHtmlTemplateElement
Properties
| Name | Description |
|---|---|
| Content | Gets the template contents: the document fragment that holds the content of the template. |
| HtmlFor | Gets or sets the value of the for content attribute. |
| ShadowRootClonable | Gets or sets a value indicating whether the element has the shadowrootclonable content attribute. |
| ShadowRootCustomElementRegistry | Gets or sets the value of the shadowrootcustomelementregistry content attribute. |
| ShadowRootDelegatesFocus | Gets or sets a value indicating whether the element has the shadowrootdelegatesfocus content attribute. |
| ShadowRootMode | Gets or sets the value of the shadowrootmode content attribute, limited to the known values (the canonical keyword, or the default value). |
| ShadowRootSerializable | Gets or sets a value indicating whether the element has the shadowrootserializable content attribute. |
| ShadowRootSlotAssignment | Gets or sets the value of the shadowrootslotassignment content attribute, limited to the known values (the canonical keyword, or the default value). |
Content
HtmlTemplateElement.csGets the template contents: the document fragment that holds the content of the template.
public DocumentFragment Content { get; }HtmlFor
HtmlElements.g.csGets or sets the value of the for content attribute.
public string HtmlFor { get; set; }Property value
See also
ShadowRootClonable
HtmlElements.g.csGets or sets a value indicating whether the element has the shadowrootclonable content attribute.
public bool ShadowRootClonable { get; set; }ShadowRootCustomElementRegistry
HtmlElements.g.csGets or sets the value of the shadowrootcustomelementregistry content attribute.
public string ShadowRootCustomElementRegistry { get; set; }ShadowRootDelegatesFocus
HtmlElements.g.csGets or sets a value indicating whether the element has the shadowrootdelegatesfocus content attribute.
public bool ShadowRootDelegatesFocus { get; set; }ShadowRootMode
HtmlElements.g.csGets or sets the value of the shadowrootmode content attribute, limited to the known values (the canonical keyword, or the default value).
public string ShadowRootMode { get; set; }Property value
See also
ShadowRootSerializable
HtmlElements.g.csGets or sets a value indicating whether the element has the shadowrootserializable content attribute.
public bool ShadowRootSerializable { get; set; }ShadowRootSlotAssignment
HtmlElements.g.csGets or sets the value of the shadowrootslotassignment content attribute, limited to the known values (the canonical keyword, or the default value).
public string ShadowRootSlotAssignment { get; set; }