Class MarkupTools
Markup parsing and processing tools
Inheritance
Namespace: Terminaux.Writer.CyclicWriters.Renderer.Markup
Assembly: Terminaux.dll
Syntax
public static class MarkupTools
Methods
| Edit this page View SourceGetMarkupInfo(string)
Gets a list of markup information instances
Declaration
public static MarkupInfo[] GetMarkupInfo(string markup)
Parameters
| Type | Name | Description |
|---|---|---|
| string | markup | Markup representation |
Returns
| Type | Description |
|---|---|
| MarkupInfo[] | Array of parsed markup representations |
GetMarkupInfo(Mark?)
Gets a list of markup information instances
Declaration
public static MarkupInfo[] GetMarkupInfo(Mark? mark)
Parameters
| Type | Name | Description |
|---|---|---|
| Mark | mark | Markup instance |
Returns
| Type | Description |
|---|---|
| MarkupInfo[] | Array of parsed markup representations |
GetMarkupInfo(WideString)
Gets a list of markup information instances
Declaration
public static MarkupInfo[] GetMarkupInfo(WideString markup)
Parameters
| Type | Name | Description |
|---|---|---|
| WideString | markup | Markup representation |
Returns
| Type | Description |
|---|---|
| MarkupInfo[] | Array of parsed markup representations |
ParseMarkup(string, Color?, Color?, string)
Parses the markup representation
Declaration
public static string ParseMarkup(string markup, Color? foregroundColor = null, Color? backgroundColor = null, string initialFormat = "")
Parameters
| Type | Name | Description |
|---|---|---|
| string | markup | Markup representation |
| Color | foregroundColor | Foreground color of the initial markup color. Overrides the initial format argument. |
| Color | backgroundColor | Background color of the initial markup color. Overrides the initial format argument. |
| string | initialFormat | Initial format. Overrides the foreground and the background color arguments. |
Returns
| Type | Description |
|---|---|
| string | A string that can be written to the console with the parsed markup representations |
ParseMarkup(Mark?, Color?, Color?, string)
Parses the markup representation
Declaration
public static string ParseMarkup(Mark? mark, Color? foregroundColor = null, Color? backgroundColor = null, string initialFormat = "")
Parameters
| Type | Name | Description |
|---|---|---|
| Mark | mark | Markup instance |
| Color | foregroundColor | Foreground color of the initial markup color. Overrides the initial format argument. |
| Color | backgroundColor | Background color of the initial markup color. Overrides the initial format argument. |
| string | initialFormat | Initial format. Overrides the foreground and the background color arguments. |
Returns
| Type | Description |
|---|---|
| string | A string that can be written to the console with the parsed markup representations |
ParseMarkup(WideString, Color?, Color?, string)
Parses the markup representation
Declaration
public static string ParseMarkup(WideString markup, Color? foregroundColor = null, Color? backgroundColor = null, string initialFormat = "")
Parameters
| Type | Name | Description |
|---|---|---|
| WideString | markup | Markup representation |
| Color | foregroundColor | Foreground color of the initial markup color. Overrides the initial format argument. |
| Color | backgroundColor | Background color of the initial markup color. Overrides the initial format argument. |
| string | initialFormat | Initial format. Overrides the foreground and the background color arguments. |
Returns
| Type | Description |
|---|---|
| string | A string that can be written to the console with the parsed markup representations |
TryParseMarkup(string, Color?, Color?, string)
Parses the markup representation
Declaration
public static bool TryParseMarkup(string markup, Color? foregroundColor = null, Color? backgroundColor = null, string initialFormat = "")
Parameters
| Type | Name | Description |
|---|---|---|
| string | markup | Markup representation |
| Color | foregroundColor | Foreground color of the initial markup color. Overrides the initial format argument. |
| Color | backgroundColor | Background color of the initial markup color. Overrides the initial format argument. |
| string | initialFormat | Initial format. Overrides the foreground and the background color arguments. |
Returns
| Type | Description |
|---|---|
| bool | A string that can be written to the console with the parsed markup representations |
TryParseMarkup(Mark?, Color?, Color?, string)
Parses the markup representation
Declaration
public static bool TryParseMarkup(Mark? mark, Color? foregroundColor = null, Color? backgroundColor = null, string initialFormat = "")
Parameters
| Type | Name | Description |
|---|---|---|
| Mark | mark | Markup instance |
| Color | foregroundColor | Foreground color of the initial markup color. Overrides the initial format argument. |
| Color | backgroundColor | Background color of the initial markup color. Overrides the initial format argument. |
| string | initialFormat | Initial format. Overrides the foreground and the background color arguments. |
Returns
| Type | Description |
|---|---|
| bool | A string that can be written to the console with the parsed markup representations |
TryParseMarkup(WideString, Color?, Color?, string)
Parses the markup representation
Declaration
public static bool TryParseMarkup(WideString markup, Color? foregroundColor = null, Color? backgroundColor = null, string initialFormat = "")
Parameters
| Type | Name | Description |
|---|---|---|
| WideString | markup | Markup representation |
| Color | foregroundColor | Foreground color of the initial markup color. Overrides the initial format argument. |
| Color | backgroundColor | Background color of the initial markup color. Overrides the initial format argument. |
| string | initialFormat | Initial format. Overrides the foreground and the background color arguments. |
Returns
| Type | Description |
|---|---|
| bool | A string that can be written to the console with the parsed markup representations |