HtmlForgeX

API Reference

Class

SpacingEngine

Namespace HtmlForgeX.Email

Provides spacing calculations between sibling elements.

Inheritance

  • Object
  • SpacingEngine

Methods

GetSpacing(HtmlForgeX.Email.Element previous, HtmlForgeX.Email.Element current, HtmlForgeX.Email.Element next) #

Calculates the margin for the current element based on surrounding siblings.

Parameters

previous HtmlForgeX.Email.Element required
Previous sibling element if any.
current HtmlForgeX.Email.Element required
Current element being evaluated.
next HtmlForgeX.Email.Element required
Next sibling element if any.

Returns

Margin string to apply.