HtmlForgeX

API Reference

Class

TablerIcon

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents an SVG icon with full styling and positioning flexibility

Inheritance

Usage

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

Accepted by parameters

Constructors

public TablerIcon(String svgContent) #

Initializes or configures TablerIcon.

Parameters

svgContent System.String requiredposition: 0

Methods

public TablerIcon AddContainerStyle(String property, String value) #
Returns: TablerIcon

Add CSS styles to the container div

Parameters

property System.String requiredposition: 0
value System.String requiredposition: 1
public TablerIcon AddHoverEffect(String property, String value) #
Returns: TablerIcon

Add hover effects

Parameters

property System.String requiredposition: 0
value System.String requiredposition: 1
public TablerIcon AddStyle(String property, String value) #
Returns: TablerIcon

Add CSS styles to the SVG element

Parameters

property System.String requiredposition: 0
value System.String requiredposition: 1
public TablerIcon Display(String display) #
Returns: TablerIcon

Set display property

Parameters

display System.String requiredposition: 0
public TablerIcon FillColor(RGBColor color) #
Returns: TablerIcon

Set the fill color

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
public TablerIcon Margin(String margin) #
Returns: TablerIcon

Add margin to the container

Parameters

margin System.String requiredposition: 0
public TablerIcon Padding(String padding) #
Returns: TablerIcon

Add padding to the container

Parameters

padding System.String requiredposition: 0
public TablerIcon Position(String position, String top = null, String right = null, String bottom = null, String left = null) #
Returns: TablerIcon

Position the icon absolutely

Parameters

position System.String requiredposition: 0
top System.String = null optionalposition: 1
right System.String = null optionalposition: 2
bottom System.String = null optionalposition: 3
left System.String = null optionalposition: 4
public TablerIcon Rotate(Int32 degrees) #
Returns: TablerIcon

Rotate the icon

Parameters

degrees System.Int32 requiredposition: 0
public TablerIcon Scale(Double scale) #
Returns: TablerIcon

Scale the icon

Parameters

scale System.Double requiredposition: 0
public TablerIcon SetAttribute(String name, String value) #
Returns: TablerIcon

Set custom SVG attribute

Parameters

name System.String requiredposition: 0
value System.String requiredposition: 1
public TablerIcon SetContainerClasses(String classes) #
Returns: TablerIcon

Set container CSS classes

Parameters

classes System.String requiredposition: 0
Size 2 overloads
public TablerIcon Size(Int32 size) #
Returns: TablerIcon

Set the icon size (width and height)

Parameters

size System.Int32 requiredposition: 0
public TablerIcon Size(Int32 width, Int32 height) #
Returns: TablerIcon

Set the icon size with different width and height

Parameters

width System.Int32 requiredposition: 0
height System.Int32 requiredposition: 1
public TablerIcon StrokeColor(RGBColor color) #
Returns: TablerIcon

Set the stroke color

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
public TablerIcon StrokeWidth(Double width) #
Returns: TablerIcon

Set the stroke width

Parameters

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

Initializes or configures ToString.

public TablerIcon Transform(String transform) #
Returns: TablerIcon

Add transform to the SVG

Parameters

transform System.String requiredposition: 0
public TablerIcon VerticalAlign(String alignment) #
Returns: TablerIcon

Set vertical alignment

Parameters

alignment System.String requiredposition: 0

Properties

public String SvgContent { get; set; } #

Raw SVG markup for the icon.

public Dictionary<String, String> SvgAttributes { get; set; } #

HTML attributes applied to the SVG element.

public Dictionary<String, String> SvgStyles { get; set; } #

CSS style properties applied directly to the SVG element.

public Dictionary<String, String> ContainerStyles { get; set; } #

Inline styles applied to the container element.

public String ContainerClasses { get; set; } #

Additional CSS classes applied to the container element.

Extension Methods

public static TablerIcon Color(TablerIcon icon, RGBColor color) #
Returns: TablerIcon

Add color (equivalent to TablerIconElement.Color)

Parameters

icon HtmlForgeX.TablerIcon requiredposition: 0
color HtmlForgeX.RGBColor requiredposition: 1
public static TablerIcon FontSize(TablerIcon icon, Int32 size) #
Returns: TablerIcon

Set font size (equivalent to TablerIconElement.FontSize)

Parameters

icon HtmlForgeX.TablerIcon requiredposition: 0
size System.Int32 requiredposition: 1