Class AlignedTextColor
Aligned writer
Inheritance
Namespace: Terminaux.Writer.FancyWriters
Assembly: Terminaux.dll
Syntax
[Obsolete("This is considered a legacy method of writing this fancy text and will be removed in a future version of Terminaux. Please use its cyclic writer equivalent.")]
public static class AlignedTextColor
Methods
| Edit this page View SourceRenderAligned(int, string, Color, Color, TextAlignment, int, int, params object[])
Renders an aligned text
Declaration
public static string RenderAligned(int top, string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAligned(int, string, Color, TextAlignment, int, int, params object[])
Renders an aligned text
Declaration
public static string RenderAligned(int top, string Text, Color ForegroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAligned(int, string, TextAlignment, int, int, params object[])
Renders an aligned text
Declaration
public static string RenderAligned(int top, string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAligned(string, Color, Color, TextAlignment, int, int, params object[])
Renders an aligned text
Declaration
public static string RenderAligned(string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAligned(string, Color, TextAlignment, int, int, params object[])
Renders an aligned text
Declaration
public static string RenderAligned(string Text, Color ForegroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAligned(string, TextAlignment, int, int, params object[])
Renders an aligned text
Declaration
public static string RenderAligned(string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAlignedOneLine(int, string, Color, Color, TextAlignment, int, int, params object[])
Renders an aligned text (just the first line)
Declaration
public static string RenderAlignedOneLine(int top, string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAlignedOneLine(int, string, Color, TextAlignment, int, int, params object[])
Renders an aligned text (just the first line)
Declaration
public static string RenderAlignedOneLine(int top, string Text, Color ForegroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAlignedOneLine(int, string, TextAlignment, int, int, params object[])
Renders an aligned text (just the first line)
Declaration
public static string RenderAlignedOneLine(int top, string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAlignedOneLine(string, Color, Color, TextAlignment, int, int, params object[])
Renders an aligned text (just the first line)
Declaration
public static string RenderAlignedOneLine(string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAlignedOneLine(string, Color, TextAlignment, int, int, params object[])
Renders an aligned text (just the first line)
Declaration
public static string RenderAlignedOneLine(string Text, Color ForegroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderAlignedOneLine(string, TextAlignment, int, int, params object[])
Renders an aligned text (just the first line)
Declaration
public static string RenderAlignedOneLine(string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
WriteAligned(int, string, TextAlignment, int, int, params object[])
Draws an aligned text
Declaration
public static void WriteAligned(int top, string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAligned(string, TextAlignment, int, int, params object[])
Draws an aligned text
Declaration
public static void WriteAligned(string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedColor(int, string, Color, TextAlignment, int, int, params object[])
Draws an aligned text
Declaration
public static void WriteAlignedColor(int top, string Text, Color Color, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | Color | A color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedColor(string, Color, TextAlignment, int, int, params object[])
Draws an aligned text
Declaration
public static void WriteAlignedColor(string Text, Color Color, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | Color | A color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedColorBack(int, string, Color, Color, TextAlignment, int, int, params object[])
Draws an aligned text
Declaration
public static void WriteAlignedColorBack(int top, string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedColorBack(string, Color, Color, TextAlignment, int, int, params object[])
Draws an aligned text
Declaration
public static void WriteAlignedColorBack(string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedOneLine(int, string, TextAlignment, int, int, params object[])
Draws an aligned text (just the first line)
Declaration
public static void WriteAlignedOneLine(int top, string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedOneLine(string, TextAlignment, int, int, params object[])
Draws an aligned text (just the first line)
Declaration
public static void WriteAlignedOneLine(string Text, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedOneLineColor(int, string, Color, TextAlignment, int, int, params object[])
Draws an aligned text (just the first line)
Declaration
public static void WriteAlignedOneLineColor(int top, string Text, Color Color, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | Color | A color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedOneLineColor(string, Color, TextAlignment, int, int, params object[])
Draws an aligned text (just the first line)
Declaration
public static void WriteAlignedOneLineColor(string Text, Color Color, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | Color | A color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedOneLineColorBack(int, string, Color, Color, TextAlignment, int, int, params object[])
Draws an aligned text (just the first line)
Declaration
public static void WriteAlignedOneLineColorBack(int top, string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write aligned text to |
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteAlignedOneLineColorBack(string, Color, Color, TextAlignment, int, int, params object[])
Draws an aligned text (just the first line)
Declaration
public static void WriteAlignedOneLineColorBack(string Text, Color ForegroundColor, Color BackgroundColor, TextAlignment alignment = TextAlignment.Left, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
TextAlignment | alignment | Text alignment |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |