HtmlForgeX

API Reference

Enum

TextAlignment

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

Describes text alignment classes.

Inheritance

  • Enum
  • TextAlignment

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

Accepted by parameters

Values

public const TextAlignment Center #

Aligns text to the center.

Value: 0
public const TextAlignment Left #

Aligns text to the left.

Value: 1
public const TextAlignment Right #

Aligns text to the right.

Value: 2

Extension Methods

public static String ToClassString(TextAlignment alignment) #
Returns: String

Converts the TextAlignment value to a CSS class string.

Parameters

alignment HtmlForgeX.TextAlignment requiredposition: 0