HtmlSlotElement Class
https://html.spec.whatwg.org/multipage/scripting.html#htmlslotelement
public sealed class HtmlSlotElement : HtmlElement- Inheritance
HtmlElementHtmlSlotElement
Properties
| Name | Description |
|---|---|
| Name | Gets 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
| Name | Description |
|---|---|
| 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.cshttps://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assign
public void Assign(params IReadOnlyList<Node> nodes)Parameters
nodesIReadOnlyList<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.cshttps://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignedelements
public IReadOnlyList<Element> AssignedElements(AssignedNodesOptions? options = null)AssignedNodes(AssignedNodesOptions?)
HtmlSlotElement.cshttps://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignednodes
public IReadOnlyList<Node> AssignedNodes(AssignedNodesOptions? options = null)