HtmlForgeX

API Reference

Class

EmailBlockquote

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements
ILayoutAware ITextElement<EmailBlockquote> IVisualElement<EmailBlockquote> IRoundable<EmailBlockquote> IRoundable

Represents a blockquote element for email layouts with email-safe styling. Provides quoted text with customizable styling, borders, and background.

Inheritance

Constructors

EmailBlockquote 3 overloads
public EmailBlockquote() #

Initializes a new instance of the EmailBlockquote class.

public EmailBlockquote(String content) #

Initializes a new instance of the EmailBlockquote class with content.

Parameters

content System.String requiredposition: 0
The blockquote content.
public EmailBlockquote(String content, String citation) #

Initializes a new instance of the EmailBlockquote class with content and citation.

Parameters

content System.String requiredposition: 0
The blockquote content.
citation System.String requiredposition: 1
The citation/source.

Methods

public override Void EvaluateLayout(LayoutContext context) #
Returns: Void

Applies default border radius for blockquotes.

Parameters

context HtmlForgeX.Email.LayoutContext requiredposition: 0
Layout evaluation context.
public override String ToString() #
Returns: String

Renders the blockquote as HTML. Uses table-based layout for better email client compatibility.

public virtual EmailBlockquote WithAlignment(Alignment alignment) #
Returns: EmailBlockquote

Sets the text alignment.

Parameters

alignment HtmlForgeX.Email.Alignment requiredposition: 0
WithBackground 2 overloads
public virtual EmailBlockquote WithBackground(RGBColor color) #
Returns: EmailBlockquote

Sets the background color.

Parameters

color System.String requiredposition: 0
WithBackground(HtmlForgeX.Email.RGBColor color) #

Sets the background color using RGBColor.

Parameters

color HtmlForgeX.Email.RGBColor required
public EmailBlockquote WithBold() #
Returns: EmailBlockquote

Makes the blockquote text bold.

WithBorder 2 overloads
public virtual EmailBlockquote WithBorder(BorderWidth width, String customValue = null) #
Returns: EmailBlockquote

Sets the border width using a predefined size.

Parameters

width HtmlForgeX.Email.BorderWidth requiredposition: 0
customValue System.String = null optionalposition: 1
public virtual EmailBlockquote WithBorder(Boolean enabled) #
Returns: EmailBlockquote

Enables or disables the blockquote border.

Parameters

enabled System.Boolean requiredposition: 0
WithBorderColor 2 overloads
public virtual EmailBlockquote WithBorderColor(RGBColor color) #
Returns: EmailBlockquote

Sets the border color.

Parameters

color System.String requiredposition: 0
WithBorderColor(HtmlForgeX.Email.RGBColor color) #

Sets the border color using RGBColor.

Parameters

color HtmlForgeX.Email.RGBColor required
public virtual EmailBlockquote WithBorderRadius(String radius) #
Returns: EmailBlockquote

Sets the border radius.

Parameters

radius System.String requiredposition: 0
public EmailBlockquote WithCenter() #
Returns: EmailBlockquote

Centers the blockquote text.

public EmailBlockquote WithCitation(String citation) #
Returns: EmailBlockquote

Sets the citation/source.

Parameters

citation System.String requiredposition: 0
WithColor 2 overloads
public virtual EmailBlockquote WithColor(RGBColor color) #
Returns: EmailBlockquote

Sets the text color.

Parameters

color System.String requiredposition: 0
WithColor(HtmlForgeX.Email.RGBColor color) #

Sets the text color using RGBColor.

Parameters

color HtmlForgeX.Email.RGBColor required
public EmailBlockquote WithContent(String content) #
Returns: EmailBlockquote

Sets the blockquote content.

Parameters

content System.String requiredposition: 0
public virtual EmailBlockquote WithFontFamily(String fontFamily) #
Returns: EmailBlockquote

Sets the font family.

Parameters

fontFamily System.String requiredposition: 0
WithFontSize 2 overloads
public virtual EmailBlockquote WithFontSize(EmailFontSize fontSize) #
Returns: EmailBlockquote

Sets the font size.

Parameters

fontSize System.String requiredposition: 0
WithFontSize(HtmlForgeX.Email.EmailFontSize fontSize) #

Sets the font size using predefined values.

Parameters

fontSize HtmlForgeX.Email.EmailFontSize required
WithFontWeight 2 overloads
public virtual EmailBlockquote WithFontWeight(FontWeight fontWeight) #
Returns: EmailBlockquote

Sets the font weight.

Parameters

fontWeight System.String requiredposition: 0
WithFontWeight(HtmlForgeX.Email.FontWeight fontWeight) #

Sets the font weight using predefined values.

Parameters

fontWeight HtmlForgeX.Email.FontWeight required
public EmailBlockquote WithItalic() #
Returns: EmailBlockquote

Makes the blockquote text italic.

public virtual EmailBlockquote WithLineHeight(String lineHeight) #
Returns: EmailBlockquote

Sets the line height.

Parameters

lineHeight System.String requiredposition: 0
WithRounded 2 overloads
public virtual EmailBlockquote WithRounded(Radius radius, String customValue = null) #
Returns: EmailBlockquote

Sets the border radius using a predefined size.

Parameters

radius HtmlForgeX.Email.Radius requiredposition: 0
customValue System.String = null optionalposition: 1
public virtual EmailBlockquote WithRounded() #
Returns: EmailBlockquote

Applies the default border radius (6px) for rounded corners.

public virtual EmailBlockquote WithRoundingMode(RoundingMode mode) #
Returns: EmailBlockquote

Sets the rounding mode for this blockquote.

Parameters

mode HtmlForgeX.Email.RoundingMode requiredposition: 0
Rounding mode.

Returns

The blockquote instance.

WithTextDecoration 2 overloads
public virtual EmailBlockquote WithTextDecoration(TextDecoration decoration) #
Returns: EmailBlockquote

Sets the text decoration.

Parameters

textDecoration System.String requiredposition: 0
WithTextDecoration(HtmlForgeX.Email.TextDecoration decoration) #

Sets the text decoration using predefined options.

Parameters

decoration HtmlForgeX.Email.TextDecoration required

Properties

public String Content { get; set; } #

Gets or sets the blockquote content.

public String Citation { get; set; } #

Gets or sets the citation/source of the quote.

public virtual String FontFamily { get; set; } #

Gets or sets the font family.

public virtual String FontSize { get; set; } #

Gets or sets the font size.

public virtual String LineHeight { get; set; } #

Gets or sets the line height.

public virtual String Color { get; set; } #

Gets or sets the text color.

public virtual String TextAlign { get; set; } #

Gets or sets the text alignment.

public virtual String FontWeight { get; set; } #

Gets or sets the font weight.

public virtual String TextDecoration { get; set; } #

Gets or sets the text decoration.

public virtual String BackgroundColor { get; set; } #

Gets or sets the background color.

public virtual String BorderRadius { get; set; } #

Gets or sets the border radius.

public virtual RoundingMode RoundingMode { get; set; } #

Controls how rounding is applied when no explicit radius is set.

public virtual String BorderColor { get; set; } #

Gets or sets the border color.

public virtual String BorderWidth { get; set; } #

Gets or sets the border width.