HtmlTemplateElement Class

https://html.spec.whatwg.org/multipage/scripting.html#htmltemplateelement

public sealed class HtmlTemplateElement : HtmlElement
Inheritance
HtmlElement HtmlTemplateElement

Properties

NameDescription
ContentGets the template contents: the document fragment that holds the content of the template.
HtmlForGets or sets the value of the for content attribute.
ShadowRootClonableGets or sets a value indicating whether the element has the shadowrootclonable content attribute.
ShadowRootCustomElementRegistryGets or sets the value of the shadowrootcustomelementregistry content attribute.
ShadowRootDelegatesFocusGets or sets a value indicating whether the element has the shadowrootdelegatesfocus content attribute.
ShadowRootModeGets or sets the value of the shadowrootmode content attribute, limited to the known values (the canonical keyword, or the default value).
ShadowRootSerializableGets or sets a value indicating whether the element has the shadowrootserializable content attribute.
ShadowRootSlotAssignmentGets or sets the value of the shadowrootslotassignment content attribute, limited to the known values (the canonical keyword, or the default value).

Gets the template contents: the document fragment that holds the content of the template.

public DocumentFragment Content { get; }

Gets or sets the value of the for content attribute.

public string HtmlFor { get; set; }

ShadowRootClonable

HtmlElements.g.cs

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

public bool ShadowRootClonable { get; set; }

ShadowRootCustomElementRegistry

HtmlElements.g.cs

Gets or sets the value of the shadowrootcustomelementregistry content attribute.

public string ShadowRootCustomElementRegistry { get; set; }

ShadowRootDelegatesFocus

HtmlElements.g.cs

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

public bool ShadowRootDelegatesFocus { get; set; }

ShadowRootMode

HtmlElements.g.cs

Gets 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; }

ShadowRootSerializable

HtmlElements.g.cs

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

public bool ShadowRootSerializable { get; set; }

ShadowRootSlotAssignment

HtmlElements.g.cs

Gets 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; }