HtmlForgeX

API Reference

Class

EmailLineBreak

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements

Represents a line break for email layouts that adds vertical spacing.

Inheritance

Constructors

EmailLineBreak 2 overloads
public EmailLineBreak() #

Initializes a new instance of the EmailLineBreak class.

public EmailLineBreak(String height) #

Initializes a new instance of the EmailLineBreak class with a specific height.

Parameters

height System.String requiredposition: 0
The height of the line break.

Methods

public override String ToString() #
Returns: String

Converts the EmailLineBreak to its HTML representation.

Returns

HTML string representing the email line break.

public EmailLineBreak WithHeight(String height) #
Returns: EmailLineBreak

Sets the height of the line break.

Parameters

height System.String requiredposition: 0
The height value.

Returns

The EmailLineBreak object, allowing for method chaining.

Properties

public String Height { get; set; } #

Gets or sets the height of the line break.