HtmlForgeX

API Reference

Class

TablerText

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents a text element styled using Tabler CSS classes.

Inheritance

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

TablerText 2 overloads
public TablerText() #

Initializes or configures TablerText.

public TablerText(String text) #

Initializes or configures TablerText.

Parameters

text System.String requiredposition: 0

Methods

public TablerText Attribute(String name, String value) #
Returns: TablerText
EditorBrowsable(2)

Adds an arbitrary attribute to the rendered text element.

Parameters

name System.String requiredposition: 0
value System.String requiredposition: 1
public TablerText Class(String classNames) #
Returns: TablerText
EditorBrowsable(2)

Adds one or more CSS classes to the rendered text element.

Parameters

classNames System.String requiredposition: 0
Color 3 overloads
public TablerText Color(RGBColor color) #
Returns: TablerText

Initializes or configures Color.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
Color(HtmlForgeX.RGBColor color) #

Set text color using full RGBColor.

Parameters

color HtmlForgeX.RGBColor required
public TablerText Color(String hex) #
Returns: TablerText

Set text color using a hex string (e.g. "#64748B").

Parameters

hex System.String requiredposition: 0
public TablerText RenderAs(String tagName) #
Returns: TablerText

Changes the rendered HTML tag. Defaults to div.

Parameters

tagName System.String requiredposition: 0
public TablerText Style(TablerTextStyle style) #
Returns: TablerText

Initializes or configures Style.

Parameters

style HtmlForgeX.TablerTextStyle requiredposition: 0
public override String ToString() #
Returns: String

Initializes or configures ToString.

public TablerText Value(String value) #
Returns: TablerText

Initializes or configures Value.

Parameters

value System.String requiredposition: 0
public TablerText Weight(TablerFontWeight weight) #
Returns: TablerText

Initializes or configures Weight.

Parameters

weight HtmlForgeX.TablerFontWeight requiredposition: 0