Table of Contents

Method WithId

Namespace
TinyComponents
Assembly
TinyComponents.dll

WithId<THtmlElement>(THtmlElement, string)

Specifies the HTML element ID of this HtmlElement.

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.