API Reference
InlineTextExtensions
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) #ElementAppends a blockquote with inline runs built via InlineText.
Parameters
- parent HtmlForgeX.Element
- build System.Action{HtmlForgeX.InlineText}
public static Element H(Element parent, HeaderLevelTag level, Action<InlineText> build) #ElementAppends a heading element (<h1>..<h6>) built using InlineText runs.
Parameters
- parent HtmlForgeX.Element
- Parent element to receive the heading.
- level HtmlForgeX.HeaderLevelTag
- Heading level (H1..H6).
- build System.Action{HtmlForgeX.InlineText}
- Builder that appends inline runs to the heading.
Returns
The parent element for chaining.
public static Element H1(Element parent, Action<InlineText> b) #ElementAdds an H1 heading using InlineText.
Parameters
- parent HtmlForgeX.Element
- b System.Action{HtmlForgeX.InlineText}
public static Element H2(Element parent, Action<InlineText> b) #ElementAdds an H2 heading using InlineText.
Parameters
- parent HtmlForgeX.Element
- b System.Action{HtmlForgeX.InlineText}
public static Element H3(Element parent, Action<InlineText> b) #ElementAdds an H3 heading using InlineText.
Parameters
- parent HtmlForgeX.Element
- b System.Action{HtmlForgeX.InlineText}
public static Element H4(Element parent, Action<InlineText> b) #ElementAdds an H4 heading using InlineText.
Parameters
- parent HtmlForgeX.Element
- b System.Action{HtmlForgeX.InlineText}
public static Element H5(Element parent, Action<InlineText> b) #ElementAdds an H5 heading using InlineText.
Parameters
- parent HtmlForgeX.Element
- b System.Action{HtmlForgeX.InlineText}
public static Element H6(Element parent, Action<InlineText> b) #ElementAdds an H6 heading using InlineText.
Parameters
- parent HtmlForgeX.Element
- b System.Action{HtmlForgeX.InlineText}
public static Element Paragraph(Element parent, Action<InlineText> build) #ElementAppends a paragraph (<p>) built via InlineText.
Parameters
- parent HtmlForgeX.Element
- build System.Action{HtmlForgeX.InlineText}
public static Element Paragraph(Element parent, Action<InlineText> build, ParagraphStyle style) #ElementAppends a paragraph with an optional style (e.g., Lead).
Parameters
- parent HtmlForgeX.Element
- build System.Action{HtmlForgeX.InlineText}
- style HtmlForgeX.ParagraphStyle
public static Element Quote(Element parent, Action<InlineText> quote, Action<InlineText> cite = null) #ElementAppends a figure containing a blockquote and optional figcaption, both built via InlineText.
Parameters
- parent HtmlForgeX.Element
- quote System.Action{HtmlForgeX.InlineText}
- cite System.Action{HtmlForgeX.InlineText} = null
public static Element Text(Element parent, Action<InlineText> build) #ElementAppends a paragraph (<p>) that contains runs built via InlineText. Prefer this for paragraph text to keep semantics clear.
Parameters
- parent HtmlForgeX.Element
- Parent element.
- build System.Action{HtmlForgeX.InlineText}
- 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) #ElementAppends a heading (<h1>..<h6>) that contains runs built via InlineText.
Parameters
- parent HtmlForgeX.Element
- Parent element.
- heading HtmlForgeX.HeaderLevelTag
- Heading level.
- build System.Action{HtmlForgeX.InlineText}
- InlineText builder for the heading’s inline runs.
Returns
The parent element for chaining.
public static Element TextInline(Element parent, Action<InlineText> build) #ElementAppends 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
- Parent element to receive the span.
- build System.Action{HtmlForgeX.InlineText}
- InlineText builder for the span’s content.
Returns
The parent element for chaining.