ShadowRootInit Class

https://dom.spec.whatwg.org/#dictdef-shadowrootinit

public sealed class ShadowRootInit

Constructors

NameDescription
ShadowRootInit()

ShadowRootInit()

ShadowRoot.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public ShadowRootInit()

No documentation is available.

Properties

NameDescription
ClonableGets or sets a value indicating whether the shadow root is copied when its host is cloned.
CustomElementRegistryGets or sets the custom element registry of the shadow root.
DelegatesFocusGets or sets a value indicating whether the shadow root delegates focus to its first focusable element.
ModeGets or sets the encapsulation mode of the shadow root.
SerializableGets or sets a value indicating whether the shadow root is included when its host is serialized.
SlotAssignmentGets or sets how slottables are assigned to the slots of the shadow root.

Gets or sets a value indicating whether the shadow root is copied when its host is cloned.

public bool Clonable { get; init; }

CustomElementRegistry

ShadowRoot.cs

Gets or sets the custom element registry of the shadow root.

public CustomElementRegistry? CustomElementRegistry { get; init; }

DelegatesFocus

ShadowRoot.cs

Gets or sets a value indicating whether the shadow root delegates focus to its first focusable element.

public bool DelegatesFocus { get; init; }

Gets or sets the encapsulation mode of the shadow root.

public required ShadowRootMode Mode { get; init; }

Serializable

ShadowRoot.cs

Gets or sets a value indicating whether the shadow root is included when its host is serialized.

public bool Serializable { get; init; }

SlotAssignment

ShadowRoot.cs

Gets or sets how slottables are assigned to the slots of the shadow root.

public SlotAssignmentMode SlotAssignment { get; init; }