HtmlForgeX

API Reference

Class

InlineTextExtensions

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers static

Fluent helpers to add InlineText to common block elements without new HtmlTag(...) or Build().

Inheritance

  • Object
  • InlineTextExtensions

Methods

public static Element Blockquote(Element parent, Action<InlineText> build) #
Returns: Element

Appends a blockquote with inline runs built via InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
build System.Action{HtmlForgeX.InlineText} requiredposition: 1
public static Element H(Element parent, HeaderLevelTag level, Action<InlineText> build) #
Returns: Element

Appends a heading element (<h1>..<h6>) built using InlineText runs.

Parameters

parent HtmlForgeX.Element requiredposition: 0
Parent element to receive the heading.
level HtmlForgeX.HeaderLevelTag requiredposition: 1
Heading level (H1..H6).
build System.Action{HtmlForgeX.InlineText} requiredposition: 2
Builder that appends inline runs to the heading.

Returns

The parent element for chaining.

public static Element H1(Element parent, Action<InlineText> b) #
Returns: Element

Adds an H1 heading using InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
b System.Action{HtmlForgeX.InlineText} requiredposition: 1
public static Element H2(Element parent, Action<InlineText> b) #
Returns: Element

Adds an H2 heading using InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
b System.Action{HtmlForgeX.InlineText} requiredposition: 1
public static Element H3(Element parent, Action<InlineText> b) #
Returns: Element

Adds an H3 heading using InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
b System.Action{HtmlForgeX.InlineText} requiredposition: 1
public static Element H4(Element parent, Action<InlineText> b) #
Returns: Element

Adds an H4 heading using InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
b System.Action{HtmlForgeX.InlineText} requiredposition: 1
public static Element H5(Element parent, Action<InlineText> b) #
Returns: Element

Adds an H5 heading using InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
b System.Action{HtmlForgeX.InlineText} requiredposition: 1
public static Element H6(Element parent, Action<InlineText> b) #
Returns: Element

Adds an H6 heading using InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
b System.Action{HtmlForgeX.InlineText} requiredposition: 1
Paragraph 2 overloads
public static Element Paragraph(Element parent, Action<InlineText> build) #
Returns: Element

Appends a paragraph (<p>) built via InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
build System.Action{HtmlForgeX.InlineText} requiredposition: 1
public static Element Paragraph(Element parent, Action<InlineText> build, ParagraphStyle style) #
Returns: Element

Appends a paragraph with an optional style (e.g., Lead).

Parameters

parent HtmlForgeX.Element requiredposition: 0
build System.Action{HtmlForgeX.InlineText} requiredposition: 1
style HtmlForgeX.ParagraphStyle requiredposition: 2
public static Element Quote(Element parent, Action<InlineText> quote, Action<InlineText> cite = null) #
Returns: Element

Appends a figure containing a blockquote and optional figcaption, both built via InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
quote System.Action{HtmlForgeX.InlineText} requiredposition: 1
cite System.Action{HtmlForgeX.InlineText} = null optionalposition: 2
Text 2 overloads
public static Element Text(Element parent, Action<InlineText> build) #
Returns: Element

Appends a paragraph (<p>) that contains runs built via InlineText. Prefer this for paragraph text to keep semantics clear.

Parameters

parent HtmlForgeX.Element requiredposition: 0
Parent element.
build System.Action{HtmlForgeX.InlineText} requiredposition: 1
InlineText builder for the paragraph’s inline runs.

Returns

The parent element for chaining.

public static Element Text(Element parent, HeaderLevelTag heading, Action<InlineText> build) #
Returns: Element

Appends a heading (<h1>..<h6>) that contains runs built via InlineText.

Parameters

parent HtmlForgeX.Element requiredposition: 0
Parent element.
heading HtmlForgeX.HeaderLevelTag requiredposition: 1
Heading level.
build System.Action{HtmlForgeX.InlineText} requiredposition: 2
InlineText builder for the heading’s inline runs.

Returns

The parent element for chaining.

public static Element TextInline(Element parent, Action<InlineText> build) #
Returns: Element

Appends a span (<span>) that contains runs built via InlineText.Text/Run/Underline etc. Use this when you need inline content (no paragraph/heading wrapper), e.g., inside titles or any container where a block element would be invalid.

Parameters

parent HtmlForgeX.Element requiredposition: 0
Parent element to receive the span.
build System.Action{HtmlForgeX.InlineText} requiredposition: 1
InlineText builder for the span’s content.

Returns

The parent element for chaining.