API Reference
EmailLayoutSize
Predefined email layout sizes for common email width standards. Provides easy-to-use options while allowing custom values for advanced users.
Inheritance
- Enum
- EmailLayoutSize
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Field EmailLayoutSize.Compact
- Field EmailLayoutSize.Custom
- Field EmailLayoutSize.ExtraWide
- Field EmailLayoutSize.FullWidth
- Field EmailLayoutSize.Standard
- Field EmailLayoutSize.Wide
Accepted by parameters
- Method Email.ConfigureLayout
- Extension method EmailLayoutSize.GetDescription
- Extension method EmailLayoutSize.ToCssValue
- Method EmailLayoutSizeExtensions.GetDescription
- Method EmailLayoutSizeExtensions.ToCssValue
Inherited Methods
public override sealed Int32 CompareTo(Object target) #Int32Parameters
- target Object
public override sealed String ToString(String format, IFormatProvider provider) #StringObsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String
Values
public const EmailLayoutSize Compact #Compact layout - 480px width. Perfect for mobile-first designs.
0public const EmailLayoutSize Standard #Standard layout - 600px width. Most common email width, works well across all clients.
1public const EmailLayoutSize Wide #Wide layout - 800px width. Good for desktop-focused emails with more content.
2public const EmailLayoutSize ExtraWide #Extra wide layout - 1000px width. For newsletters and content-heavy emails.
3public const EmailLayoutSize FullWidth #Full width layout - 100% width. Adapts to container size, use with caution in emails.
4public const EmailLayoutSize Custom #Custom size - allows specifying exact pixel value or percentage.
5Extension Methods
public static String GetDescription(EmailLayoutSize size) #StringGets a user-friendly description of the layout size.
Parameters
- size HtmlForgeX.Email.EmailLayoutSize
- The layout size.
Returns
Description string.
public static String ToCssValue(EmailLayoutSize size) #StringConverts EmailLayoutSize to CSS width value.
Parameters
- size HtmlForgeX.Email.EmailLayoutSize
- The layout size.
Returns
CSS width value as string.