Table of Contents

Method WithStyle

Namespace
TinyComponents
Assembly
TinyComponents.dll

WithStyle<THtmlElement>(THtmlElement, object)

Adds css styles through the style attribute on this HtmlElement.

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.