API Reference
EmailTableConditionGroup
Represents a group of conditions with combined logic.
Inheritance
- Object
- EmailTableConditionGroup
Constructors
public EmailTableConditionGroup() #Methods
public EmailTableCondition AddCondition(String columnName) #EmailTableConditionAdds a condition to the group.
Parameters
- columnName System.String
- 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}
- Dictionary of column names to values.
Returns
True if group condition is met, false otherwise.
public EmailTableConditionGroup WithAlignment(Alignment alignment) #EmailTableConditionGroupSets the alignment to apply when condition is met.
Parameters
- alignment HtmlForgeX.Email.Alignment
- The alignment value.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithBackgroundColor(String color) #EmailTableConditionGroupSets the background color to apply when condition is met.
Parameters
- color System.String
- The background color value.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithColor(String color) #EmailTableConditionGroupSets the text color to apply when condition is met.
Parameters
- color System.String
- The color value.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithFailBackgroundColor(String color) #EmailTableConditionGroupSets the fail background color (applied when condition is NOT met).
Parameters
- color System.String
- The background color value.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithFailColor(String color) #EmailTableConditionGroupSets the fail text color (applied when condition is NOT met).
Parameters
- color System.String
- The text color value.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithFontSize(String size) #EmailTableConditionGroupSets the font size to apply when condition is met.
Parameters
- size System.String
- The font size value.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithFontStyle(FontStyle style) #EmailTableConditionGroupSets the font style to apply when condition is met.
Parameters
- style HtmlForgeX.Email.FontStyle
- The font style.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithFontWeight(FontWeight weight) #EmailTableConditionGroupSets the font weight to apply when condition is met.
Parameters
- weight HtmlForgeX.Email.FontWeight
- The font weight.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithHighlightHeaders(params String[] headers) #EmailTableConditionGroupSets headers to highlight when condition is met.
Parameters
- headers System.String[]
- The headers to highlight.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithLogic(ConditionLogic logic) #EmailTableConditionGroupSets the logic for combining conditions.
Parameters
- logic HtmlForgeX.Email.ConditionLogic
- The logic operator.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
public EmailTableConditionGroup WithTextDecoration(TextDecoration decoration) #EmailTableConditionGroupSets the text decoration to apply when condition is met.
Parameters
- decoration HtmlForgeX.Email.TextDecoration
- The text decoration.
Returns
The EmailTableConditionGroup object, allowing for method chaining.
Inherited Methods
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.