API Reference
Element
Base class for all HTML elements in HtmlForgeX.Email.
Inheritance
- Object
- Element
Methods
public virtual Element Add(Element element) #ElementAdds a child element to this element.
Parameters
- element HtmlForgeX.Email.Element
- The element to add.
Returns
This element for method chaining.
public virtual Element AddCssClass(String cssClass) #ElementAdds additional CSS classes to the existing ones.
Parameters
- cssClass System.String
- The CSS class(es) to add.
Returns
The element instance for method chaining.
ApplyAlignment(HtmlForgeX.Email.Alignment arg1) #Validates and applies alignment value with email-specific validation.
Parameters
- arg1 HtmlForgeX.Email.Alignment
ApplyEnumValue``1(``0 arg1) #Converts enum values to their CSS string representation.
Parameters
- arg1 ``0
ConvertColor(HtmlForgeX.Email.RGBColor arg1) #Converts RGBColor to string representation.
Parameters
- arg1 HtmlForgeX.Email.RGBColor
public Element EmailActivityList(Action<EmailActivityList> config) #ElementAdds and configures an EmailActivityList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailActivityList}
public EmailActivityList EmailActivityList() #EmailActivityListAdds an EmailActivityList element.
public Element EmailAddressBlock(Action<EmailAddressBlock> config) #ElementAdds and configures an EmailAddressBlock element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailAddressBlock}
public EmailAddressBlock EmailAddressBlock() #EmailAddressBlockAdds an EmailAddressBlock element.
public Element EmailAddressCard(Action<EmailAddressCard> config) #ElementAdds and configures an EmailAddressCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailAddressCard}
public EmailAddressCard EmailAddressCard() #EmailAddressCardAdds an EmailAddressCard element.
public Element EmailAlert(Action<EmailAlert> config) #ElementAdds and configures an EmailAlert element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailAlert}
public EmailAlert EmailAlert(EmailAlertType type, String title, String message = "") #EmailAlertAdds an EmailAlert with a preset type, title and optional message.
Parameters
- type HtmlForgeX.Email.EmailAlertType
- title System.String
- message System.String = ""
public Element EmailArticleCard(Action<EmailArticleCard> config) #ElementAdds and configures an EmailArticleCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailArticleCard}
public EmailArticleCard EmailArticleCard() #EmailArticleCardAdds an EmailArticleCard element.
public Element EmailArticleList(Action<EmailArticleList> config) #ElementAdds and configures an EmailArticleList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailArticleList}
public EmailArticleList EmailArticleList() #EmailArticleListAdds an EmailArticleList element.
public Element EmailAttachmentList(Action<EmailAttachmentList> config) #ElementAdds and configures an EmailAttachmentList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailAttachmentList}
public EmailAttachmentList EmailAttachmentList() #EmailAttachmentListAdds an EmailAttachmentList element.
public Element EmailAvatar(Action<EmailAvatar> config) #ElementAdds and configures an EmailAvatar element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailAvatar}
public EmailAvatar EmailAvatar(String initials, String size = "40px") #EmailAvatarAdds an EmailAvatar using initials (fallback mode).
Parameters
- initials System.String
- size System.String = "40px"
public Element EmailAvatarStack(Action<EmailAvatarStack> config) #ElementAdds and configures an EmailAvatarStack element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailAvatarStack}
public EmailAvatarStack EmailAvatarStack() #EmailAvatarStackAdds an EmailAvatarStack element.
public Element EmailBackgroundImageBox(Action<EmailBackgroundImageBox> config) #ElementAdds and configures an EmailBackgroundImageBox element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBackgroundImageBox}
public EmailBackgroundImageBox EmailBackgroundImageBox() #EmailBackgroundImageBoxAdds an EmailBackgroundImageBox element.
public Element EmailBadge(Action<EmailBadge> config) #ElementAdds and configures an EmailBadge element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBadge}
public EmailBadge EmailBadge(String text, String backgroundColor = "#64748B", String color = "#FFFFFF") #EmailBadgeAdds an EmailBadge element.
Parameters
- text System.String
- backgroundColor System.String = "#64748B"
- color System.String = "#FFFFFF"
public Element EmailBadgeList(Action<EmailBadgeList> config) #ElementAdds and configures an EmailBadgeList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBadgeList}
public Element EmailBarChart(Action<EmailBarChart> config) #ElementAdds and configures an EmailBarChart element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBarChart}
public EmailBarChart EmailBarChart() #EmailBarChartAdds an EmailBarChart element.
Returns
The created chart element.
public Element EmailBarcode(Action<EmailBarcode> config) #ElementAdds and configures an EmailBarcode element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBarcode}
public EmailBarcode EmailBarcode(String value) #EmailBarcodeAdds an EmailBarcode element with the specified payload.
Parameters
- value System.String
public Element EmailBlockquote(Action<EmailBlockquote> config) #ElementAdds an EmailBlockquote element with optional content.
Parameters
- content System.String = ""
EmailBlockquote(System.Action{HtmlForgeX.Email.EmailBlockquote} config) #Adds and configures an EmailBlockquote element using the provided action.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBlockquote}
public Element EmailBox(Action<EmailBox> config) #ElementAdds and configures an EmailBox element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBox}
- Configuration action.
Returns
The current element for chaining.
public Element EmailBoxWithBuilder(Action<EmailBoxBuilder> config) #ElementAdds and configures an EmailBox element using a fluent builder.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBoxBuilder}
- Builder configuration action.
Returns
The current element for chaining.
public Element EmailBrandStrip(Action<EmailBrandStrip> config) #ElementAdds and configures an EmailBrandStrip element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailBrandStrip}
public Element EmailButton(Action<EmailButton> config) #ElementAdds and configures an EmailButton>) element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailButton}
- Configuration action.
Returns
The current element for chaining.
public Element EmailButtonGroup(Action<EmailButtonGroup> config) #ElementAdds and configures an EmailButtonGroup element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailButtonGroup}
public EmailButtonGroup EmailButtonGroup() #EmailButtonGroupAdds an EmailButtonGroup element.
public Element EmailCalendar(Action<EmailCalendar> config) #ElementAdds and configures an EmailCalendar element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailCalendar}
public Element EmailCalloutCard(Action<EmailCalloutCard> config) #ElementAdds and configures an EmailCalloutCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailCalloutCard}
public EmailCalloutCard EmailCalloutCard() #EmailCalloutCardAdds an EmailCalloutCard element.
public Element EmailChangelog(Action<EmailChangelog> config) #ElementAdds and configures an EmailChangelog element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailChangelog}
public Element EmailColumn(Action<EmailColumn> config) #ElementAdds and configures an EmailColumn element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailColumn}
- Configuration action.
Returns
The current element for chaining.
public Element EmailCommentList(Action<EmailCommentList> config) #ElementAdds and configures an EmailCommentList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailCommentList}
public EmailCommentList EmailCommentList() #EmailCommentListAdds an EmailCommentList element.
public Element EmailComparisonTable(Action<EmailComparisonTable> config) #ElementAdds and configures an EmailComparisonTable element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailComparisonTable}
public EmailComparisonTable EmailComparisonTable() #EmailComparisonTableAdds an EmailComparisonTable element.
public Element EmailContent(Action<EmailContent> config) #ElementAdds and configures an EmailContent>) element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailContent}
- Configuration action.
Returns
The current element for chaining.
public Element EmailCredentialCard(Action<EmailCredentialCard> config) #ElementAdds and configures an EmailCredentialCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailCredentialCard}
public EmailCredentialCard EmailCredentialCard() #EmailCredentialCardAdds an EmailCredentialCard element.
public Element EmailDateStrip(Action<EmailDateStrip> config) #ElementAdds and configures an EmailDateStrip element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailDateStrip}
public EmailDivider EmailDivider() #EmailDividerAdds an EmailDivider element.
Returns
The created divider element.
public Element EmailDivider(Action<EmailDivider> config) #ElementAdds and configures an EmailDivider element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailDivider}
- Configuration action.
Returns
The current element for chaining.
public Element EmailDnsRecordsTable(Action<EmailDnsRecordsTable> config) #ElementAdds and configures an EmailDnsRecordsTable element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailDnsRecordsTable}
public EmailDnsRecordsTable EmailDnsRecordsTable() #EmailDnsRecordsTableAdds an EmailDnsRecordsTable element.
public Element EmailDonutChart(Action<EmailDonutChart> config) #ElementAdds and configures an EmailDonutChart element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailDonutChart}
public Element EmailDownloadCard(Action<EmailDownloadCard> config) #ElementAdds and configures an EmailDownloadCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailDownloadCard}
public EmailDownloadCard EmailDownloadCard() #EmailDownloadCardAdds an EmailDownloadCard element.
public Element EmailEmojiRating(Action<EmailEmojiRating> config) #ElementAdds and configures an EmailEmojiRating element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailEmojiRating}
public EmailEmojiRating EmailEmojiRating() #EmailEmojiRatingAdds an EmailEmojiRating element.
public Element EmailEmptyStateCard(Action<EmailEmptyStateCard> config) #ElementAdds and configures an EmailEmptyStateCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailEmptyStateCard}
public EmailEmptyStateCard EmailEmptyStateCard() #EmailEmptyStateCardAdds an EmailEmptyStateCard element.
public Element EmailEventCard(Action<EmailEventCard> config) #ElementAdds and configures an EmailEventCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailEventCard}
public Element EmailFaqList(Action<EmailFaqList> config) #ElementAdds and configures an EmailFaqList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailFaqList}
public Element EmailFeatureList(Action<EmailFeatureList> config) #ElementAdds and configures an EmailFeatureList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailFeatureList}
public EmailFeatureList EmailFeatureList() #EmailFeatureListAdds an EmailFeatureList element.
public EmailHeading EmailHeading(String content = "", Int32 level = 2) #EmailHeadingAdds an EmailHeading element with optional content and level.
Parameters
- content System.String = ""
- Initial heading text.
- level System.Int32 = 2
- Heading level (1-6).
Returns
The created heading element.
public Element EmailHeading(Action<EmailHeading> config) #ElementAdds and configures an EmailHeading element using the provided action.
Parameters
- config System.Action{HtmlForgeX.Email.EmailHeading}
- Configuration action.
Returns
The current element for chaining.
public Element EmailHeatmap(Action<EmailHeatmap> config) #ElementAdds and configures an EmailHeatmap element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailHeatmap}
public Element EmailIconCircle(Action<EmailIconCircle> config) #ElementAdds and configures an EmailIconCircle element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailIconCircle}
public Element EmailImage(Action<EmailImage> config) #ElementAdds and configures an EmailImage element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailImage}
- Configuration action.
Returns
The current element for chaining.
public EmailImage EmailImage(String source) #EmailImageAdds an EmailImage element with the specified source.
Parameters
- source System.String
- Image source path or URL.
Returns
The created image element.
public EmailImage EmailImage(String source, String width) #EmailImageAdds an EmailImage element with specified source and width.
Parameters
- source System.String
- Image source path or URL.
- width System.String
- Width value.
Returns
The created image element.
public Element EmailIncidentSummaryCard(Action<EmailIncidentSummaryCard> config) #ElementAdds and configures an EmailIncidentSummaryCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailIncidentSummaryCard}
public EmailIncidentSummaryCard EmailIncidentSummaryCard() #EmailIncidentSummaryCardAdds an EmailIncidentSummaryCard element.
public Element EmailInlineStack(Action<EmailInlineStack> config) #ElementAdds and configures an EmailInlineStack element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailInlineStack}
public EmailInlineStack EmailInlineStack() #EmailInlineStackAdds an EmailInlineStack element.
public Element EmailInvoiceLineItemsTable(Action<EmailInvoiceLineItemsTable> config) #ElementAdds and configures an EmailInvoiceLineItemsTable element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailInvoiceLineItemsTable}
public EmailInvoiceLineItemsTable EmailInvoiceLineItemsTable() #EmailInvoiceLineItemsTableAdds an EmailInvoiceLineItemsTable element.
public Element EmailInvoiceTotals(Action<EmailInvoiceTotals> config) #ElementAdds and configures an EmailInvoiceTotals element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailInvoiceTotals}
public EmailInvoiceTotals EmailInvoiceTotals() #EmailInvoiceTotalsAdds an EmailInvoiceTotals element.
public Element EmailKeyValueTable(Action<EmailKeyValueTable> config) #ElementAdds and configures an EmailKeyValueTable element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailKeyValueTable}
public EmailKeyValueTable EmailKeyValueTable() #EmailKeyValueTableAdds an EmailKeyValueTable element.
public Element EmailKpiDelta(Action<EmailKpiDelta> config) #ElementAdds and configures an EmailKpiDelta element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailKpiDelta}
public EmailLineBreak EmailLineBreak() #EmailLineBreakAdds an empty line break.
Returns
The created line break element.
public EmailLineBreak EmailLineBreak(String height) #EmailLineBreakAdds a line break with a specific height.
Parameters
- height System.String
- CSS height value.
Returns
The created line break element.
public Element EmailLineItemsTable(Action<EmailLineItemsTable> config) #ElementAdds and configures an EmailLineItemsTable element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailLineItemsTable}
public EmailLineItemsTable EmailLineItemsTable() #EmailLineItemsTableAdds an EmailLineItemsTable element.
public EmailLink EmailLink(String content, String href) #EmailLinkAdds a hyperlink element with text and target URL.
Parameters
- content System.String
- Link text.
- href System.String
- Target URL.
Returns
The created link element.
public EmailLink EmailLink(String content, String href, Boolean openInNewWindow) #EmailLinkAdds a hyperlink element with an option to open in a new window.
Parameters
- content System.String
- Link text.
- href System.String
- Target URL.
- openInNewWindow System.Boolean
- If set to true, the link opens in a new window.
Returns
The created link element.
public Element EmailList(Action<EmailList> config) #ElementAdds and configures an EmailList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailList}
- Configuration action.
Returns
The current element for chaining.
public Element EmailMapCard(Action<EmailMapCard> config) #ElementAdds and configures an EmailMapCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailMapCard}
public Element EmailMediaObject(Action<EmailMediaObject> config) #ElementAdds and configures an EmailMediaObject element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailMediaObject}
public EmailMediaObject EmailMediaObject() #EmailMediaObjectAdds an EmailMediaObject element.
public Element EmailMessageThread(Action<EmailMessageThread> config) #ElementAdds and configures an EmailMessageThread element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailMessageThread}
public EmailMessageThread EmailMessageThread() #EmailMessageThreadAdds an EmailMessageThread element.
public Element EmailMetricTile(Action<EmailMetricTile> config) #ElementAdds and configures an EmailMetricTile element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailMetricTile}
public EmailMetricTile EmailMetricTile(String value, String label, String icon = "") #EmailMetricTileAdds an EmailMetricTile element.
Parameters
- value System.String
- label System.String
- icon System.String = ""
public Element EmailNpsRating(Action<EmailNpsRating> config) #ElementAdds and configures an EmailNpsRating element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailNpsRating}
public Element EmailOfferCard(Action<EmailOfferCard> config) #ElementAdds and configures an EmailOfferCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailOfferCard}
public Element EmailOtpCode(Action<EmailOtpCode> config) #ElementAdds and configures an EmailOtpCode element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailOtpCode}
public EmailOtpCode EmailOtpCode(String code) #EmailOtpCodeAdds an EmailOtpCode element with the specified code.
Parameters
- code System.String
public Element EmailPhotoCard(Action<EmailPhotoCard> config) #ElementAdds and configures an EmailPhotoCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailPhotoCard}
public Element EmailPhotoGrid(Action<EmailPhotoGrid> config) #ElementAdds and configures an EmailPhotoGrid element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailPhotoGrid}
public Element EmailPricingTable(Action<EmailPricingTable> config) #ElementAdds and configures an EmailPricingTable element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailPricingTable}
public EmailPricingTable EmailPricingTable() #EmailPricingTableAdds an EmailPricingTable element.
public Element EmailProductCard(Action<EmailProductCard> config) #ElementAdds and configures an EmailProductCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailProductCard}
public EmailProductCard EmailProductCard() #EmailProductCardAdds an EmailProductCard element.
public Element EmailProductGrid(Action<EmailProductGrid> config) #ElementAdds and configures an EmailProductGrid element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailProductGrid}
public EmailProductGrid EmailProductGrid() #EmailProductGridAdds an EmailProductGrid element.
public Element EmailProfileCard(Action<EmailProfileCard> config) #ElementAdds and configures an EmailProfileCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailProfileCard}
public EmailProfileCard EmailProfileCard() #EmailProfileCardAdds an EmailProfileCard element.
public Element EmailProgressBar(Action<EmailProgressBar> config) #ElementAdds and configures an EmailProgressBar element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailProgressBar}
public EmailProgressBar EmailProgressBar(Int32 value) #EmailProgressBarAdds an EmailProgressBar with the specified value.
Parameters
- value System.Int32
public Element EmailProjectList(Action<EmailProjectList> config) #ElementAdds and configures an EmailProjectList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailProjectList}
public EmailProjectList EmailProjectList() #EmailProjectListAdds an EmailProjectList element.
public Element EmailPromoCodeCard(Action<EmailPromoCodeCard> config) #ElementAdds and configures an EmailPromoCodeCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailPromoCodeCard}
public EmailPromoCodeCard EmailPromoCodeCard() #EmailPromoCodeCardAdds an EmailPromoCodeCard element.
public Element EmailQrCode(Action<EmailQrCode> config) #ElementAdds and configures an EmailQrCode element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailQrCode}
public EmailQrCode EmailQrCode(String value) #EmailQrCodeAdds an EmailQrCode element with the specified payload.
Parameters
- value System.String
public Element EmailReceiptCard(Action<EmailReceiptCard> config) #ElementAdds and configures an EmailReceiptCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailReceiptCard}
public EmailReceiptCard EmailReceiptCard() #EmailReceiptCardAdds an EmailReceiptCard element.
public Element EmailRepoStatsCard(Action<EmailRepoStatsCard> config) #ElementAdds and configures an EmailRepoStatsCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailRepoStatsCard}
public EmailRepoStatsCard EmailRepoStatsCard() #EmailRepoStatsCardAdds an EmailRepoStatsCard element.
public Element EmailReviewStars(Action<EmailReviewStars> config) #ElementAdds and configures an EmailReviewStars element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailReviewStars}
public EmailReviewStars EmailReviewStars() #EmailReviewStarsAdds an EmailReviewStars element.
public Element EmailReviewSummary(Action<EmailReviewSummary> config) #ElementAdds and configures an EmailReviewSummary element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailReviewSummary}
public EmailReviewSummary EmailReviewSummary() #EmailReviewSummaryAdds an EmailReviewSummary element.
public Element EmailRow(Action<EmailRow> config) #ElementAdds and configures an EmailRow element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailRow}
- Configuration action.
Returns
The current element for chaining.
public Element EmailScheduleCard(Action<EmailScheduleCard> config) #ElementAdds and configures an EmailScheduleCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailScheduleCard}
public EmailScheduleCard EmailScheduleCard() #EmailScheduleCardAdds an EmailScheduleCard element.
public Element EmailScheduleList(Action<EmailScheduleList> config) #ElementAdds and configures an EmailScheduleList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailScheduleList}
public EmailScheduleList EmailScheduleList() #EmailScheduleListAdds an EmailScheduleList element.
public Element EmailShippingProgress(Action<EmailShippingProgress> config) #ElementAdds and configures an EmailShippingProgress element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailShippingProgress}
public EmailShippingProgress EmailShippingProgress() #EmailShippingProgressAdds an EmailShippingProgress element.
public Element EmailSocialLinks(Action<EmailSocialLinks> config) #ElementAdds and configures an EmailSocialLinks element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailSocialLinks}
public EmailSocialLinks EmailSocialLinks() #EmailSocialLinksAdds an EmailSocialLinks element.
public Element EmailSpacer(Action<EmailSpacer> config) #ElementAdds an EmailSpacer element with the specified height.
Parameters
- height System.String
EmailSpacer(HtmlForgeX.Email.EmailSpacing spacing) #Adds an EmailSpacer element using a semantic spacing value.
Parameters
- spacing HtmlForgeX.Email.EmailSpacing
EmailSpacer(System.Action{HtmlForgeX.Email.EmailSpacer} config) #Adds and configures an EmailSpacer element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailSpacer}
public Element EmailSparklineBars(Action<EmailSparklineBars> config) #ElementAdds and configures an EmailSparklineBars element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailSparklineBars}
public EmailSparklineBars EmailSparklineBars(params Int32[] values) #EmailSparklineBarsAdds an EmailSparklineBars element with the specified values.
Parameters
- values System.Int32[]
public Element EmailStatCard(Action<EmailStatCard> config) #ElementAdds and configures an EmailStatCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailStatCard}
public EmailStatCard EmailStatCard(String title, String value, String subtitle = "", String delta = "", EmailTrendDirection trend = Neutral) #EmailStatCardAdds an EmailStatCard element.
Parameters
- title System.String
- value System.String
- subtitle System.String = ""
- delta System.String = ""
- trend HtmlForgeX.Email.EmailTrendDirection = Neutral
public Element EmailStatusTimeline(Action<EmailStatusTimeline> config) #ElementAdds and configures an EmailStatusTimeline element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailStatusTimeline}
public EmailStatusTimeline EmailStatusTimeline() #EmailStatusTimelineAdds an EmailStatusTimeline element.
public Element EmailStepsIndicator(Action<EmailStepsIndicator> config) #ElementAdds and configures an EmailStepsIndicator element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailStepsIndicator}
public EmailStepsIndicator EmailStepsIndicator() #EmailStepsIndicatorAdds an EmailStepsIndicator element.
public Element EmailStoreBadges(Action<EmailStoreBadges> config) #ElementAdds and configures an EmailStoreBadges element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailStoreBadges}
public EmailStoreBadges EmailStoreBadges() #EmailStoreBadgesAdds an EmailStoreBadges element.
public Element EmailSubscriptionSummaryCard(Action<EmailSubscriptionSummaryCard> config) #ElementAdds and configures an EmailSubscriptionSummaryCard element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailSubscriptionSummaryCard}
public EmailSubscriptionSummaryCard EmailSubscriptionSummaryCard() #EmailSubscriptionSummaryCardAdds an EmailSubscriptionSummaryCard element.
public Element EmailSurveyOptions(Action<EmailSurveyOptions> config) #ElementAdds and configures an EmailSurveyOptions element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailSurveyOptions}
public EmailSurveyOptions EmailSurveyOptions() #EmailSurveyOptionsAdds an EmailSurveyOptions element.
public Element EmailTable(Action<EmailTable> config) #ElementAdds and configures an EmailTable element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailTable}
- Configuration action.
Returns
The current element for chaining.
public Element EmailTable<T>(IEnumerable<T> data, Action<EmailDynamicTable<T>> config) #ElementAdds an EmailTable populated from dictionaries.
Type Parameters
- T
Parameters
- data System.Collections.Generic.IEnumerable{System.Collections.Generic.IDictionary{System.String,System.Object}}
- Dictionary data to populate the table.
- transpose System.Boolean = false
- Whether to transpose the table.
Returns
The created table element.
public Element EmailTable(IEnumerable<IDictionary<String, Object>> data, Action<EmailTable> config, Boolean transpose = false) #ElementAdds an EmailTable from dictionaries with configuration.
Type Parameters
- T
Parameters
- data System.Collections.Generic.IEnumerable{System.Collections.Generic.IDictionary{System.String,System.Object}}
- Dictionary data to populate the table.
- config System.Action{HtmlForgeX.Email.EmailTable}
- Configuration action.
- transpose System.Boolean = false
- Whether to transpose the table.
EmailTable``1(System.Collections.Generic.IEnumerable{``0} data, System.Boolean transpose) #Adds an EmailTable populated from a collection.
Type Parameters
- T
- Type of items in the collection.
Parameters
- data System.Collections.Generic.IEnumerable{``0}
- Data used to populate the table.
- transpose System.Boolean
- Whether to transpose the table.
Returns
The created table element.
EmailTable``1(System.Collections.Generic.IEnumerable{``0} data, System.Action{HtmlForgeX.Email.EmailTable} config, System.Boolean transpose) #Adds an EmailTable populated from a collection with configuration.
Type Parameters
- T
- Type of items in the collection.
Parameters
- data System.Collections.Generic.IEnumerable{``0}
- Data used to populate the table.
- config System.Action{HtmlForgeX.Email.EmailTable}
- Configuration action.
- transpose System.Boolean
- Whether to transpose the table.
Returns
The current element for chaining.
EmailTable``1(System.Collections.Generic.IEnumerable{``0} data, System.Action{HtmlForgeX.Email.EmailDynamicTable{``0}} config) #Adds an EmailDynamicTable<T> bound to a collection with column configuration.
Type Parameters
- T
- Type of items in the collection.
Parameters
- data System.Collections.Generic.IEnumerable{``0}
- Data used to populate the table.
- config System.Action{HtmlForgeX.Email.EmailDynamicTable{``0}}
- Configuration action.
Returns
The current element for chaining.
public Element EmailTextBlock(Action<EmailTextBlock> config) #ElementAdds and configures an EmailTextBlock element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailTextBlock}
public Element EmailTodoList(Action<EmailTodoList> config) #ElementAdds and configures an EmailTodoList element.
Parameters
- config System.Action{HtmlForgeX.Email.EmailTodoList}
public virtual Void EvaluateLayout(LayoutContext context) #VoidAllows the element to adjust layout properties before rendering.
Parameters
- context HtmlForgeX.Email.LayoutContext
- Layout information about sibling elements.
EvaluateLayoutsRecursively() #Recursively evaluates layout information for this element's children.
OnAddedToDocument() #Called when this element is added to a document. Override this method to apply document-specific configuration.
PropagateEmailToChildren() #Recursively sets the email reference for all child elements.
RegisterLibraries() #Registers required libraries for this element. Override in derived classes to register specific libraries.
ResolveTheme() #Resolves the effective theme for this element. Falls back to Default when the element is not attached to an Email.
public abstract String ToString() #StringReturns a string representation of the element.
Returns
HTML output for this element.
ValidateColor(System.String arg1) #Validates and returns a color string.
Parameters
- arg1 System.String
ValidateUrl(System.String arg1, System.String arg2) #Validates and normalizes a URL intended for an href attribute.
Parameters
- arg1 System.String
- arg2 System.String
public virtual Element WithCssClass(String cssClass) #ElementSets additional CSS classes for the element.
Parameters
- cssClass System.String
- The CSS class(es) to add.
Returns
The element instance for method chaining.
public virtual Element WithMargin(String margin) #ElementSets the margin for the element.
Parameters
- margin System.String
- The margin value (e.g., "12px", "0 0 12px 0").
Returns
The element instance for method chaining.
public virtual Element WithPadding(String padding) #ElementSets the padding for the element.
Parameters
- padding System.String
- The padding value (e.g., "16px", "8px 16px").
Returns
The element instance for method chaining.
Inherited Methods
Properties
public List<Element> Children { get; } #Collection of child elements contained within this element.
public virtual String Margin { get; set; } #Gets or sets the margin around the element. Default is "0 0 12px 0" for consistent spacing.
public virtual String Padding { get; set; } #Gets or sets the padding inside the element. Default is "0" but can be overridden by derived classes.
public virtual String CssClass { get; set; } #Gets or sets additional CSS classes for the element.
ParentColumn #Gets or sets the parent EmailColumn reference. Used internally for column-aware rendering.
Parent #Gets the parent element in the hierarchy.
public Email Email { get; set; } #Gets or sets the parent email reference. Used internally for email-specific functionality.