HtmlForgeX

API Reference

Class

EmailLibrary

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email

Represents an email library containing only inline CSS. These libraries are tailored specifically for the restrictive environment of email clients and therefore do not include any external resources or JavaScript.

Inheritance

  • Object
  • EmailLibrary

Constructors

EmailLibrary 2 overloads
public EmailLibrary() #

Initializes a new instance of the EmailLibrary class.

public EmailLibrary(String name, String version = "", String description = "") #

Initializes a new instance of the EmailLibrary class with basic information.

Parameters

name System.String requiredposition: 0
The name of the library.
version System.String = "" optionalposition: 1
The version of the library.
description System.String = "" optionalposition: 2
The description of the library.

Methods

public EmailLibrary AddCss(String css) #
Returns: EmailLibrary

Adds inline CSS to the library.

Parameters

css System.String requiredposition: 0
The CSS content to add.

Returns

The EmailLibrary object, allowing for method chaining.

Properties

public String Name { get; set; } #

Gets or sets the name of the library.

public String Version { get; set; } #

Gets or sets the version of the library.

public String Description { get; set; } #

Gets or sets the description of the library.

public List<String> InlineCss { get; set; } #

Collection of inline CSS content.