HtmlForgeX

API Reference

Class

BorderWidthExtensions

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Modifiers static

Extension methods for BorderWidth enum.

Inheritance

  • Object
  • BorderWidthExtensions

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.