Sisk

Method

HtmlElementExtensions.WithId<THtmlElement>

Namespace
TinyComponents
Assembly
TinyComponents.dll

WithId<THtmlElement>(THtmlElement, string) #

Specifies the HTML element ID of this HtmlElement.

C#
public static THtmlElement WithId<THtmlElement>(this THtmlElement node, string id) where THtmlElement : HtmlElement

Parameters #

node THtmlElement

The current HtmlElement.

id string

The element ID.

Returns #

THtmlElement

The self HtmlElement object for fluent chaining.

Type Parameters #

THtmlElement

The object type which implements HtmlElement.

Type to search the documentation and the API reference.