Class CenteredTextColor
Centered writer
Inheritance
Namespace: Terminaux.Writer.FancyWriters
Assembly: Terminaux.dll
Syntax
public static class CenteredTextColor
Methods
| Edit this page View SourceRenderCentered(int, string, int, int, params object[])
Renders a centered text
Declaration
public static string RenderCentered(int top, string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
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 |
RenderCentered(int, string, Color, int, int, params object[])
Renders a centered text
Declaration
public static string RenderCentered(int top, string Text, Color ForegroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
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 |
RenderCentered(int, string, Color, Color, int, int, params object[])
Renders a centered text
Declaration
public static string RenderCentered(int top, string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
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 |
RenderCentered(string, int, int, params object[])
Renders a centered text
Declaration
public static string RenderCentered(string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
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 |
RenderCentered(string, Color, int, int, params object[])
Renders a centered text
Declaration
public static string RenderCentered(string Text, Color ForegroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
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 |
RenderCentered(string, Color, Color, int, int, params object[])
Renders a centered text
Declaration
public static string RenderCentered(string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
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 |
RenderCenteredOneLine(int, string, int, int, params object[])
Renders a centered text (just the first line)
Declaration
public static string RenderCenteredOneLine(int top, string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
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 |
RenderCenteredOneLine(int, string, Color, int, int, params object[])
Renders a centered text (just the first line)
Declaration
public static string RenderCenteredOneLine(int top, string Text, Color ForegroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
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 |
RenderCenteredOneLine(int, string, Color, Color, int, int, params object[])
Renders a centered text (just the first line)
Declaration
public static string RenderCenteredOneLine(int top, string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
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 |
RenderCenteredOneLine(string, int, int, params object[])
Renders a centered text (just the first line)
Declaration
public static string RenderCenteredOneLine(string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
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 |
RenderCenteredOneLine(string, Color, int, int, params object[])
Renders a centered text (just the first line)
Declaration
public static string RenderCenteredOneLine(string Text, Color ForegroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
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 |
RenderCenteredOneLine(string, Color, Color, int, int, params object[])
Renders a centered text (just the first line)
Declaration
public static string RenderCenteredOneLine(string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
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 |
WriteCentered(int, string, int, int, params object[])
Draws a centered text
Declaration
public static void WriteCentered(int top, string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCentered(string, int, int, params object[])
Draws a centered text
Declaration
public static void WriteCentered(string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredColor(int, string, Color, int, int, params object[])
Draws a centered text
Declaration
public static void WriteCenteredColor(int top, string Text, Color Color, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | Color | A color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredColor(string, Color, int, int, params object[])
Draws a centered text
Declaration
public static void WriteCenteredColor(string Text, Color Color, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | Color | A color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredColorBack(int, string, Color, Color, int, int, params object[])
Draws a centered text
Declaration
public static void WriteCenteredColorBack(int top, string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredColorBack(string, Color, Color, int, int, params object[])
Draws a centered text
Declaration
public static void WriteCenteredColorBack(string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredOneLine(int, string, int, int, params object[])
Draws a centered text (just the first line)
Declaration
public static void WriteCenteredOneLine(int top, string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredOneLine(string, int, int, params object[])
Draws a centered text (just the first line)
Declaration
public static void WriteCenteredOneLine(string Text, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredOneLineColor(int, string, Color, int, int, params object[])
Draws a centered text (just the first line)
Declaration
public static void WriteCenteredOneLineColor(int top, string Text, Color Color, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | Color | A color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredOneLineColor(string, Color, int, int, params object[])
Draws a centered text (just the first line)
Declaration
public static void WriteCenteredOneLineColor(string Text, Color Color, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | Color | A color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredOneLineColorBack(int, string, Color, Color, int, int, params object[])
Draws a centered text (just the first line)
Declaration
public static void WriteCenteredOneLineColorBack(int top, string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
int | top | Top position to write centered text to |
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |
WriteCenteredOneLineColorBack(string, Color, Color, int, int, params object[])
Draws a centered text (just the first line)
Declaration
public static void WriteCenteredOneLineColorBack(string Text, Color ForegroundColor, Color BackgroundColor, int leftMargin = 0, int rightMargin = 0, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the centered. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
int | leftMargin | The left margin |
int | rightMargin | The right margin |
object[] | Vars | Variables to format the message before it's written. |