HtmlForgeX

API Reference

Class

EmailReviewSummary

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

Email-safe review summary card (average rating + optional distribution bars).

Inheritance

Constructors

Methods

public EmailReviewSummary AddBucket(Int32 stars, Int32 count) #
Returns: EmailReviewSummary

Adds a distribution bucket.

Parameters

stars System.Int32 requiredposition: 0
count System.Int32 requiredposition: 1
public override String ToString() #
Returns: String
public EmailReviewSummary WithRating(Double rating, Int32 maxStars = 5) #
Returns: EmailReviewSummary

Sets the rating.

Parameters

rating System.Double requiredposition: 0
maxStars System.Int32 = 5 optionalposition: 1
public EmailReviewSummary WithTotalReviews(Int32 total) #
Returns: EmailReviewSummary

Sets total review count.

Parameters

total System.Int32 requiredposition: 0

Properties

public Double Rating { get; set; } #

Average rating value (0..MaxStars).

public Int32 MaxStars { get; set; } #

Maximum number of stars.

public Int32 TotalReviews { get; set; } #

Total review count (optional). When 0, computed from buckets.

public List<EmailReviewBucket> Buckets { get; } #

Rating distribution buckets (stars → count).

public String BackgroundColor { get; set; } #

Card background color.

public String BorderColor { get; set; } #

Card border color.

public String BorderRadius { get; set; } #

Border radius.

public String CardPadding { get; set; } #

Card padding.

public String TextColor { get; set; } #

Primary text color.

public String MetaColor { get; set; } #

Secondary text color.

public String StarColor { get; set; } #

Star color (for the average display).

public String EmptyStarColor { get; set; } #

Empty-star color.

public Boolean ShowDistribution { get; set; } #

Whether to render the distribution breakdown.

public String BarTrackColor { get; set; } #

Track color for distribution bars.

public String BarFillColor { get; set; } #

Fill color for distribution bars.

public String BarHeight { get; set; } #

Height of distribution bars.

public String BarBorderRadius { get; set; } #

Border radius for distribution bars.