API Reference
Enum
Spacing
Defines standard spacing sizes for padding and margins in email components.
Inheritance
- Enum
- Spacing
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 Spacing.Custom
- Field Spacing.ExtraLarge
- Field Spacing.ExtraSmall
- Field Spacing.Huge
- Field Spacing.Large
- Field Spacing.Medium
- Field Spacing.None
- Field Spacing.Small
Accepted by parameters
- Method EmailRow.WithPadding
- Extension method Spacing.ToCssValue
- Method SpacingExtensions.ToCssValue
Inherited Methods
public override sealed Int32 CompareTo(Object target) #Returns:
Int32Inherited from Enum
Parameters
- target Object
public override sealed String ToString(String format, IFormatProvider provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String
Values
Extension Methods
public static String ToCssValue(Spacing spacing, String customValue = null) #Returns:
StringConverts the Spacing enum to its CSS pixel value.
Parameters
- spacing HtmlForgeX.Email.Spacing
- The spacing enum value.
- customValue System.String = null
- Custom value to use when Spacing.Custom is specified.
Returns
The CSS pixel value as a string.