HtmlForgeX

API Reference

Enum

BorderWidth

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Defines standard border width sizes for email components.

Inheritance

  • Enum
  • BorderWidth

Values

public const BorderWidth None #

No border (0px).

Value: 0
public const BorderWidth Thin #

Thin border (1px).

Value: 1
public const BorderWidth Medium #

Medium border (2px).

Value: 2
public const BorderWidth Thick #

Thick border (3px).

Value: 3
public const BorderWidth Custom #

Custom border width - use a specific value.

Value: 4

Extension Methods

public static String ToCssValue(BorderWidth width, String customValue = null) #
Returns: String

Converts the BorderWidth enum to its CSS pixel value.

Parameters

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

Returns

The CSS pixel value as a string.