HtmlForgeX

API Reference

Class

EmailListItem

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email

Represents a list item for EmailList with customizable styling.

Inheritance

  • Object
  • EmailListItem

Constructors

EmailListItem 2 overloads
public EmailListItem() #

Initializes a new instance of the EmailListItem class.

public EmailListItem(String text) #

Initializes a new instance of the EmailListItem class with text.

Parameters

text System.String requiredposition: 0
The item text.

Methods

public override String ToString() #
Returns: String

Converts the EmailListItem to its HTML representation.

Returns

HTML string representing the list item.

WithColor 2 overloads
public EmailListItem WithColor(RGBColor color) #
Returns: EmailListItem

Sets the text color.

Parameters

color System.String requiredposition: 0
The text color.

Returns

The EmailListItem object, allowing for method chaining.

WithColor(HtmlForgeX.Email.RGBColor color) #

Sets the text color using RGBColor.

Parameters

color HtmlForgeX.Email.RGBColor required
The text color.

Returns

The EmailListItem object, allowing for method chaining.

public EmailListItem WithFontStyle(String fontStyle) #
Returns: EmailListItem

Sets the font style.

Parameters

fontStyle System.String requiredposition: 0
The font style.

Returns

The EmailListItem object, allowing for method chaining.

WithFontWeight 2 overloads
public EmailListItem WithFontWeight(FontWeight fontWeight) #
Returns: EmailListItem

Sets the font weight.

Parameters

fontWeight System.String requiredposition: 0
The font weight.

Returns

The EmailListItem object, allowing for method chaining.

WithFontWeight(HtmlForgeX.Email.FontWeight fontWeight) #

Sets the font weight using predefined values.

Parameters

fontWeight HtmlForgeX.Email.FontWeight required
The predefined font weight.

Returns

The EmailListItem instance.

public EmailListItem WithText(String text) #
Returns: EmailListItem

Sets the item text.

Parameters

text System.String requiredposition: 0
The item text.

Returns

The EmailListItem object, allowing for method chaining.

WithTextDecoration 2 overloads
public EmailListItem WithTextDecoration(TextDecoration decoration) #
Returns: EmailListItem

Sets the text decoration.

Parameters

textDecoration System.String requiredposition: 0
The text decoration.

Returns

The EmailListItem object, allowing for method chaining.

WithTextDecoration(HtmlForgeX.Email.TextDecoration decoration) #

Sets the text decoration using predefined options.

Parameters

decoration HtmlForgeX.Email.TextDecoration required
The decoration option.

Returns

The EmailListItem instance.

Properties

public String Text { get; set; } #

Gets or sets the item text.

public String Color { get; set; } #

Gets or sets the text color.

public String FontWeight { get; set; } #

Gets or sets the font weight.

public String TextDecoration { get; set; } #

Gets or sets the text decoration.

public String FontStyle { get; set; } #

Gets or sets the font style.