HtmlForgeX

API Reference

Interface

ISpaceable`1

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Modifiers abstract

Interface for elements that support margin and padding configuration.

Type Parameters

T
The type of element implementing this interface.

Methods

public abstract T WithMargin(String margin) #
Returns: T

Sets the margin for the element.

Parameters

margin System.String requiredposition: 0
The margin value (e.g., "12px", "0 0 12px 0").

Returns

The element instance for method chaining.

public abstract T WithPadding(String padding) #
Returns: T

Sets the padding for the element.

Parameters

padding System.String requiredposition: 0
The padding value (e.g., "16px", "8px 16px").

Returns

The element instance for method chaining.