API Reference
Enum
Alignment
Alignment options for text. The Justify value is not consistently supported by many email clients and may not render as expected.
Inheritance
- Enum
- Alignment
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 Alignment.Center
- Field Alignment.Justify
- Field Alignment.Left
- Field Alignment.Right
- Property Span.Alignment
Accepted by parameters
- Extension method Alignment.ToCssValue
- Extension method Alignment.ValidateEmailAlignment
- Method AlignmentExtensions.ToCssValue
- Method AlignmentExtensions.ValidateEmailAlignment
- Method Span.WithAlignment
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(Alignment alignment) #Returns:
StringConverts an alignment value to its CSS representation.
Parameters
- alignment HtmlForgeX.Alignment
- Alignment option.
Returns
CSS text-align value.
public static Void ValidateEmailAlignment(Alignment alignment) #Returns:
VoidValidates that the alignment is allowed for email components.
Parameters
- alignment HtmlForgeX.Alignment
- Alignment to validate.