HtmlForgeX

API Reference

Class

EmailTableConditionGroup

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email

Represents a group of conditions with combined logic.

Inheritance

  • Object
  • EmailTableConditionGroup

Constructors

public EmailTableConditionGroup() #

Methods

public EmailTableCondition AddCondition(String columnName) #
Returns: EmailTableCondition

Adds a condition to the group.

Parameters

columnName System.String requiredposition: 0
Column name to apply the condition to.

Returns

The EmailTableCondition object for configuration.

Evaluate(System.Collections.Generic.Dictionary{System.String,System.Object} rowData) #

Evaluates the condition group.

Parameters

rowData System.Collections.Generic.Dictionary{System.String,System.Object} required
Dictionary of column names to values.

Returns

True if group condition is met, false otherwise.

public EmailTableConditionGroup WithAlignment(Alignment alignment) #
Returns: EmailTableConditionGroup

Sets the alignment to apply when condition is met.

Parameters

alignment HtmlForgeX.Email.Alignment requiredposition: 0
The alignment value.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithBackgroundColor(String color) #
Returns: EmailTableConditionGroup

Sets the background color to apply when condition is met.

Parameters

color System.String requiredposition: 0
The background color value.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithColor(String color) #
Returns: EmailTableConditionGroup

Sets the text color to apply when condition is met.

Parameters

color System.String requiredposition: 0
The color value.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithFailBackgroundColor(String color) #
Returns: EmailTableConditionGroup

Sets the fail background color (applied when condition is NOT met).

Parameters

color System.String requiredposition: 0
The background color value.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithFailColor(String color) #
Returns: EmailTableConditionGroup

Sets the fail text color (applied when condition is NOT met).

Parameters

color System.String requiredposition: 0
The text color value.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithFontSize(String size) #
Returns: EmailTableConditionGroup

Sets the font size to apply when condition is met.

Parameters

size System.String requiredposition: 0
The font size value.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithFontStyle(FontStyle style) #
Returns: EmailTableConditionGroup

Sets the font style to apply when condition is met.

Parameters

style HtmlForgeX.Email.FontStyle requiredposition: 0
The font style.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithFontWeight(FontWeight weight) #
Returns: EmailTableConditionGroup

Sets the font weight to apply when condition is met.

Parameters

weight HtmlForgeX.Email.FontWeight requiredposition: 0
The font weight.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithHighlightHeaders(params String[] headers) #
Returns: EmailTableConditionGroup

Sets headers to highlight when condition is met.

Parameters

headers System.String[] requiredposition: 0
The headers to highlight.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithLogic(ConditionLogic logic) #
Returns: EmailTableConditionGroup

Sets the logic for combining conditions.

Parameters

logic HtmlForgeX.Email.ConditionLogic requiredposition: 0
The logic operator.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

public EmailTableConditionGroup WithTextDecoration(TextDecoration decoration) #
Returns: EmailTableConditionGroup

Sets the text decoration to apply when condition is met.

Parameters

decoration HtmlForgeX.Email.TextDecoration requiredposition: 0
The text decoration.

Returns

The EmailTableConditionGroup object, allowing for method chaining.

Properties

public ConditionLogic Logic { get; set; } #

Logic to combine conditions (AND/OR).

public List<EmailTableCondition> Conditions { get; set; } #

Conditions in this group.

public Nullable<FontWeight> FontWeight { get; set; } #

Font weight to apply when group condition is met.

public Nullable<TextDecoration> TextDecoration { get; set; } #

Text decoration to apply when group condition is met.

public String TextColor { get; set; } #

Text color to apply when group condition is met.

public String BackgroundColor { get; set; } #

Background color to apply when group condition is met.

public String FontSize { get; set; } #

Font size to apply when group condition is met.

public Nullable<FontStyle> FontStyle { get; set; } #

Font style to apply when group condition is met.

public Nullable<Alignment> Alignment { get; set; } #

Alignment to apply when group condition is met.

public String FailBackgroundColor { get; set; } #

Background color to apply when group condition is NOT met.

public String FailTextColor { get; set; } #

Text color to apply when group condition is NOT met.

public List<String> HighlightHeaders { get; set; } #

Headers to highlight when group condition is met.