HtmlForgeX

API Reference

Class

EmailReviewStars

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

Email-safe star rating display (uses Unicode stars, no images required).

Inheritance

Constructors

Methods

public override String ToString() #
Returns: String
public EmailReviewStars WithRating(Double rating, Int32 maxStars = 5) #
Returns: EmailReviewStars

Sets rating.

Parameters

rating System.Double requiredposition: 0
maxStars System.Int32 = 5 optionalposition: 1
public EmailReviewStars WithValue(Boolean show = true, String format = null) #
Returns: EmailReviewStars

Enables numeric value display.

Parameters

show System.Boolean = true optionalposition: 0
format System.String = null optionalposition: 1

Properties

public Double Rating { get; set; } #

Rating value (0..MaxStars).

public Int32 MaxStars { get; set; } #

Maximum number of stars.

public String StarColor { get; set; } #

Star color.

public String EmptyStarColor { get; set; } #

Empty-star color.

public String FontSize { get; set; } #

Star font size (e.g. "18px").

public String StarGap { get; set; } #

Gap between stars (e.g. "2px").

public Boolean ShowValue { get; set; } #

Whether to render the numeric value.

public String ValueFormat { get; set; } #

Value format (e.g. "0.0").

public String ValueFontSize { get; set; } #

Value font size (e.g. "13px").

public String ValueColor { get; set; } #

Value color.

public String ValueSuffix { get; set; } #

Value label suffix (e.g. "/5").

public Alignment Alignment { get; set; } #

Text alignment.