Sisk

Method

HtmlElementExtensions.WithStyle<THtmlElement>

Namespace
TinyComponents
Assembly
TinyComponents.dll

WithStyle<THtmlElement>(THtmlElement, object) #

Adds css styles through the style attribute on this HtmlElement.

C#
public static THtmlElement WithStyle<THtmlElement>(this THtmlElement node, object styleObject) where THtmlElement : HtmlElement

Parameters #

node THtmlElement

The current HtmlElement.

styleObject object

The object which contains CSS properties and values to style the component.

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.