API Reference
Class
EmailTextWrapModeExtensions
Extension methods for EmailTextWrapMode enum to convert to CSS properties.
Inheritance
- Object
- EmailTextWrapModeExtensions
Methods
public static String GetDescription(EmailTextWrapMode wrapMode) #Returns:
StringGets a description of what the wrap mode does.
Parameters
- wrapMode HtmlForgeX.Email.EmailTextWrapMode
- The wrap mode to describe.
Returns
A human-readable description of the wrap mode behavior.
public static String GetExamples(EmailTextWrapMode wrapMode) #Returns:
StringGets example use cases for the wrap mode.
Parameters
- wrapMode HtmlForgeX.Email.EmailTextWrapMode
- The wrap mode to get examples for.
Returns
Example use cases as a string.
public static String ProcessTextForWrapping(String text, EmailTextWrapMode wrapMode) #Returns:
StringProcesses 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
- The text to process.
- wrapMode HtmlForgeX.Email.EmailTextWrapMode
- The wrap mode to apply.
Returns
Processed text with soft line breaks inserted where appropriate.
public static String ToCssProperties(EmailTextWrapMode wrapMode) #Returns:
StringConverts the EmailTextWrapMode to CSS properties for text wrapping.
Parameters
- wrapMode HtmlForgeX.Email.EmailTextWrapMode
- The wrap mode to convert.
Returns
CSS properties as a string for the specified wrap mode.