HtmlForgeX

API Reference

Class

TableCell

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Represents a table cell value that can be text, raw HTML, or a typed HtmlForgeX element.

Inheritance

  • Object
  • TableCell

Methods

public static TableCell FromElement(Element element) #
Returns: TableCell

Creates a cell that renders a typed HtmlForgeX element.

Parameters

element HtmlForgeX.Element requiredposition: 0
public static TableCell Raw(String html) #
Returns: TableCell

Creates a raw HTML cell (renders the provided HTML without encoding).

Parameters

html System.String requiredposition: 0
public static TableCell TextCell(String text) #
Returns: TableCell

Creates a text cell (renders the provided text as-is).

Parameters

text System.String requiredposition: 0

Properties

public String Text { get; } #

Gets the plain text value for the cell (rendered as-is).

public String RawHtml { get; } #

Gets the raw HTML value for the cell (rendered as-is).

public Element Element { get; } #

Gets the HtmlForgeX element to render in the cell.