HtmlForgeX

API Reference

Class

EmailTextWrapModeExtensions

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Modifiers static

Extension methods for EmailTextWrapMode enum to convert to CSS properties.

Inheritance

  • Object
  • EmailTextWrapModeExtensions

Methods

public static String GetDescription(EmailTextWrapMode wrapMode) #
Returns: String

Gets a description of what the wrap mode does.

Parameters

wrapMode HtmlForgeX.Email.EmailTextWrapMode requiredposition: 0
The wrap mode to describe.

Returns

A human-readable description of the wrap mode behavior.

public static String GetExamples(EmailTextWrapMode wrapMode) #
Returns: String

Gets example use cases for the wrap mode.

Parameters

wrapMode HtmlForgeX.Email.EmailTextWrapMode requiredposition: 0
The wrap mode to get examples for.

Returns

Example use cases as a string.

public static String ProcessTextForWrapping(String text, EmailTextWrapMode wrapMode) #
Returns: String

Processes text content to insert soft line breaks at better positions for method chains. This provides a programmatic solution for better text wrapping in email clients.

Parameters

text System.String requiredposition: 0
The text to process.
wrapMode HtmlForgeX.Email.EmailTextWrapMode requiredposition: 1
The wrap mode to apply.

Returns

Processed text with soft line breaks inserted where appropriate.

public static String ToCssProperties(EmailTextWrapMode wrapMode) #
Returns: String

Converts the EmailTextWrapMode to CSS properties for text wrapping.

Parameters

wrapMode HtmlForgeX.Email.EmailTextWrapMode requiredposition: 0
The wrap mode to convert.

Returns

CSS properties as a string for the specified wrap mode.