HtmlForgeX

API Reference

Class

ScrollingTextItem

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Class for creating a scrolling text item.

Inheritance

Constructors

ScrollingTextItem(System.String title, System.String content) #

Constructor for the ScrollingTextItem.

Parameters

title System.String required
Title of the new item.
content System.String required
Optional HTML content.

Methods

public ScrollingTextItem AddItem(String title, Action<ScrollingTextItem> config) #
Returns: ScrollingTextItem

Allows you to add a child element to the ScrollingTextItem.

Parameters

title System.String requiredposition: 0
Title of the child item.
config System.Action{HtmlForgeX.ScrollingTextItem} requiredposition: 1
Callback used to configure the item.

Returns

The newly created item.

public override String ToString() #
Returns: String

Converts the ScrollingTextItem to an HTML string.

Properties

public String Id { get; set; } #

ID of the ScrollingTextItem. By default, it is a random GUID.

Title #

Title of the ScrollingTextItem. It's mandatory.

Content #

Storage for the content of the ScrollingTextItem.

Items #

Items/Children of the ScrollingTextItem.