HtmlForgeX

API Reference

Class

EmailSurveyOptions

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements
Modifiers sealed

Email-safe survey options rendered as a grid of linkable buttons (no forms required). Useful for 1–5 ratings, A/B/C choices, or short multi-choice surveys.

Inheritance

Constructors

Methods

AddOption 2 overloads
public EmailSurveyOptions AddOption(String text, String href, String caption = "") #
Returns: EmailSurveyOptions

Adds an option.

Parameters

text System.String requiredposition: 0
href System.String requiredposition: 1
caption System.String = "" optionalposition: 2
public EmailSurveyOptions AddOption(Action<EmailSurveyOption> configure) #
Returns: EmailSurveyOptions

Adds an option configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailSurveyOption} requiredposition: 0
public EmailSurveyOptions AddScale(Int32 min, Int32 max, Func<Int32, String> hrefFactory, Func<Int32, String> captionFactory = null) #
Returns: EmailSurveyOptions

Convenience helper for numeric scales (e.g., 1–5 or 0–10).

Parameters

min System.Int32 requiredposition: 0
max System.Int32 requiredposition: 1
hrefFactory System.Func{System.Int32,System.String} requiredposition: 2
captionFactory System.Func{System.Int32,System.String} = null optionalposition: 3
public override String ToString() #
Returns: String

Properties

public List<EmailSurveyOption> Options { get; } #

Survey options.

public Int32 Columns { get; set; } #

Number of columns (options per row).

public Int32 GapPx { get; set; } #

Gap between options in pixels.

public String BackgroundColor { get; set; } #

Option background color.

public String BorderColor { get; set; } #

Option border color.

public String TextColor { get; set; } #

Option text color.

public String BorderRadius { get; set; } #

Border radius for option buttons.

public String OptionPadding { get; set; } #

Option padding.

public String FontSize { get; set; } #

Option font size.

public Boolean ShowCaptions { get; set; } #

Whether to show captions under each option.

public String CaptionColor { get; set; } #

Caption color.