API Reference
Class
SpacingEngine
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
- Previous sibling element if any.
- current HtmlForgeX.Email.Element
- Current element being evaluated.
- next HtmlForgeX.Email.Element
- Next sibling element if any.
Returns
Margin string to apply.