API Reference
Class
EmailTableConditionalFormatting
Manages conditional formatting rules for an email table.
Inheritance
- Object
- EmailTableConditionalFormatting
Constructors
public EmailTableConditionalFormatting() #Methods
public EmailTableCondition AddCondition(String columnName) #Returns:
EmailTableConditionAdds a single condition.
Parameters
- columnName System.String
- Column name to apply the condition to.
Returns
The EmailTableCondition object for configuration.
public EmailTableConditionGroup AddConditionGroup(Action<EmailTableConditionGroup> configure) #Returns:
EmailTableConditionGroupAdds a condition group.
Parameters
- configure System.Action{HtmlForgeX.Email.EmailTableConditionGroup}
- Configuration action for the group.
Returns
The EmailTableConditionGroup object for additional configuration.
ApplyToCell(HtmlForgeX.Email.EmailTableCell cell, System.Collections.Generic.Dictionary{System.String,System.Object} rowData, System.String columnName) #Applies conditional formatting to a table cell.
Parameters
- cell HtmlForgeX.Email.EmailTableCell
- The cell to format.
- rowData System.Collections.Generic.Dictionary{System.String,System.Object}
- Dictionary of column names to values for the entire row.
- columnName System.String
- The current column name.
GetHighlightedHeaders(System.Collections.Generic.Dictionary{System.String,System.Object} rowData) #Gets all highlighted headers from conditions and groups.
Parameters
- rowData System.Collections.Generic.Dictionary{System.String,System.Object}
- Dictionary of column names to values for the entire row.
Returns
List of headers to highlight.