HtmlForgeX

API Reference

Class

TablerIconElement (HtmlForgeX)

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

SVG-based icon element with full styling and positioning control. Replaces the old CSS-based TablerIcon system with native SVG rendering.

Inheritance

Constructors

public TablerIconElement(TablerIconType icon) #

Initializes or configures TablerIconElement.

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0

Methods

public TablerIconElement AddStyle(String property, String value) #
Returns: TablerIconElement

Add custom CSS style to the SVG icon

Parameters

property System.String requiredposition: 0
value System.String requiredposition: 1
public TablerIconElement Color(RGBColor color) #
Returns: TablerIconElement

Set the stroke color of the SVG icon

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
public TablerIconElement FillColor(RGBColor color) #
Returns: TablerIconElement

Set the fill color of the SVG icon

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
public TablerIconElement FontSize(Int32 size) #
Returns: TablerIconElement

Set the size of the SVG icon (width and height)

Parameters

size System.Int32 requiredposition: 0
public TablerIconElement Rotate(Int32 degrees) #
Returns: TablerIconElement

Rotate the SVG icon by specified degrees

Parameters

degrees System.Int32 requiredposition: 0
public TablerIconElement Scale(Double factor) #
Returns: TablerIconElement

Scale the SVG icon by specified factor

Parameters

factor System.Double requiredposition: 0
public TablerIconElement StrokeWidth(Double width) #
Returns: TablerIconElement

Set the stroke width of the SVG icon

Parameters

width System.Double requiredposition: 0
public override String ToString() #
Returns: String

Initializes or configures ToString.

Properties

public TablerIconType Icon { get; set; } #

Identifier of the icon to display.

public String Classes { get; set; } #

CSS classes to add to the icon