Class Mark
String with console markup support
Inheritance
object
Mark
Namespace: Terminaux.Writer.CyclicWriters.Renderer.Markup
Assembly: Terminaux.dll
Syntax
public class Mark
Constructors
| Edit this page View SourceMark()
Constructor without any argument to create a markup representation class without text
Declaration
public Mark()
Mark(string)
Constructor to create a markup representation class with specified text
Declaration
public Mark(string markup)
Parameters
Type | Name | Description |
---|---|---|
string | markup | Markup representation of a text |
Properties
| Edit this page View SourceMarkup
Markup representation
Declaration
public WideString Markup { get; set; }
Property Value
Type | Description |
---|---|
WideString |
Methods
| Edit this page View SourceParseMarkup()
Parses the markup representation
Declaration
public string ParseMarkup()
Returns
Type | Description |
---|---|
string | A string that can be written to the console with the parsed markup representations |
Operators
| Edit this page View Sourceimplicit operator Mark(string)
Makes a Mark instance from a string implicitly
Declaration
public static implicit operator Mark(string markup)
Parameters
Type | Name | Description |
---|---|---|
string | markup | Markup representation |
Returns
Type | Description |
---|---|
Mark |
implicit operator string(Mark)
Makes a string from the markup
Declaration
public static implicit operator string(Mark mark)
Parameters
Type | Name | Description |
---|---|---|
Mark | mark | Markup instance |
Returns
Type | Description |
---|---|
string |
implicit operator WideString(Mark)
Makes a wide string from the markup
Declaration
public static implicit operator WideString(Mark mark)
Parameters
Type | Name | Description |
---|---|---|
Mark | mark | Markup instance |
Returns
Type | Description |
---|---|
WideString |
implicit operator Mark(WideString)
Makes a Mark instance from a wide string implicitly
Declaration
public static implicit operator Mark(WideString markup)
Parameters
Type | Name | Description |
---|---|---|
WideString | markup | Markup representation |
Returns
Type | Description |
---|---|
Mark |