HtmlForgeX

API Reference

Class

SpacingExtensions

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Modifiers static

Extension methods for Spacing enum.

Inheritance

  • Object
  • SpacingExtensions

Methods

public static String ToCssValue(Spacing spacing, String customValue = null) #
Returns: String

Converts the Spacing enum to its CSS pixel value.

Parameters

spacing HtmlForgeX.Email.Spacing requiredposition: 0
The spacing enum value.
customValue System.String = null optionalposition: 1
Custom value to use when Spacing.Custom is specified.

Returns

The CSS pixel value as a string.