Skip to the content.

< Back


MarkdownTableTextAlignmentExtensions

Namespace: Markdown

Markdown table text alignment extensions.

public static class MarkdownTableTextAlignmentExtensions

Inheritance ObjectMarkdownTableTextAlignmentExtensions
Attributes NullableContextAttribute, NullableAttribute, ExtensionAttribute

Methods

Print(MarkdownTableTextAlignment)

Prints the specified text alignment.

public static string Print(MarkdownTableTextAlignment textAlignment)

Parameters

textAlignment MarkdownTableTextAlignment
The text alignment.

Returns

String
A string that represents the current markdown table text alignment.

Print(MarkdownTableTextAlignment, Int32)

Prints the specified text alignment padded to the given width.

public static string Print(MarkdownTableTextAlignment textAlignment, int width)

Parameters

textAlignment MarkdownTableTextAlignment
The text alignment.

width Int32
The column width (minimum 3).

Returns

String
A padded string that represents the current markdown table text alignment.


< Back