HtmlSlotElement Class

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

public sealed class HtmlSlotElement : HtmlElement
Inheritance
HtmlElement HtmlSlotElement

Properties

NameDescription
NameGets or sets the value of the name content attribute.

Gets or sets the value of the name content attribute.

public string Name { get; set; }

Methods

NameDescription
Assign(IReadOnlyList<Node>)https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assign
AssignedElements(AssignedNodesOptions?)https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignedelements
AssignedNodes(AssignedNodesOptions?)https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignednodes

Assign(IReadOnlyList<Node>)

HtmlSlotElement.cs

https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assign

public void Assign(params IReadOnlyList<Node> nodes)

Parameters

nodes IReadOnlyList<Node>

Remarks

As in the browsers, the slottables are also assigned for the trees of the slots of the other trees that lose a node: their assigned nodes change, and they are signaled a slot change (the specification only runs "assign slottables for a tree" for the root of this slot, which leaves the assigned nodes of the previous slot of a node out of date).

See also

AssignedElements(AssignedNodesOptions?)

HtmlSlotElement.cs

https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignedelements

public IReadOnlyList<Element> AssignedElements(AssignedNodesOptions? options = null)

AssignedNodes(AssignedNodesOptions?)

HtmlSlotElement.cs

https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignednodes

public IReadOnlyList<Node> AssignedNodes(AssignedNodesOptions? options = null)