C# 클래스 PowerArgs.StringEx

string extension methods
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs

공개 메소드들

메소드 설명
ToBlack ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to black, and optionally forces the background of all characters to the given color.

ToBlue ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to blue, and optionally forces the background of all characters to the given color.

ToConsoleString ( this s, ConsoleColor fg = null, ConsoleColor bg = null ) : ConsoleString

Converts a string to a ConsoleString

ToCyan ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to cyan, and optionally forces the background of all characters to the given color.

ToDarkBlue ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to dark blue, and optionally forces the background of all characters to the given color.

ToDarkCyan ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to dark cyan, and optionally forces the background of all characters to the given color.

ToDarkGray ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to dark gray, and optionally forces the background of all characters to the given color.

ToDarkGreen ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to dark green, and optionally forces the background of all characters to the given color.

ToDarkMagenta ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to dark magenta, and optionally forces the background of all characters to the given color.

ToDarkRed ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to dark red, and optionally forces the background of all characters to the given color.

ToDarkYellow ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to dark yellow, and optionally forces the background of all characters to the given color.

ToGray ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to gray, and optionally forces the background of all characters to the given color.

ToGreen ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to green, and optionally forces the background of all characters to the given color.

ToMagenta ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to magenta, and optionally forces the background of all characters to the given color.

ToRed ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to red, and optionally forces the background of all characters to the given color.

ToWhite ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to white, and optionally forces the background of all characters to the given color.

ToYellow ( this s, ConsoleColor bg = null ) : ConsoleString

Changes the foreground of this string to yellow, and optionally forces the background of all characters to the given color.

메소드 상세

ToBlack() 공개 정적인 메소드

Changes the foreground of this string to black, and optionally forces the background of all characters to the given color.
public static ToBlack ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToBlue() 공개 정적인 메소드

Changes the foreground of this string to blue, and optionally forces the background of all characters to the given color.
public static ToBlue ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToConsoleString() 공개 정적인 메소드

Converts a string to a ConsoleString
public static ToConsoleString ( this s, ConsoleColor fg = null, ConsoleColor bg = null ) : ConsoleString
s this the string to convert
fg ConsoleColor the foreground color to apply to the result
bg ConsoleColor the background color to apply to the result
리턴 ConsoleString

ToCyan() 공개 정적인 메소드

Changes the foreground of this string to cyan, and optionally forces the background of all characters to the given color.
public static ToCyan ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToDarkBlue() 공개 정적인 메소드

Changes the foreground of this string to dark blue, and optionally forces the background of all characters to the given color.
public static ToDarkBlue ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToDarkCyan() 공개 정적인 메소드

Changes the foreground of this string to dark cyan, and optionally forces the background of all characters to the given color.
public static ToDarkCyan ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToDarkGray() 공개 정적인 메소드

Changes the foreground of this string to dark gray, and optionally forces the background of all characters to the given color.
public static ToDarkGray ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToDarkGreen() 공개 정적인 메소드

Changes the foreground of this string to dark green, and optionally forces the background of all characters to the given color.
public static ToDarkGreen ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToDarkMagenta() 공개 정적인 메소드

Changes the foreground of this string to dark magenta, and optionally forces the background of all characters to the given color.
public static ToDarkMagenta ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToDarkRed() 공개 정적인 메소드

Changes the foreground of this string to dark red, and optionally forces the background of all characters to the given color.
public static ToDarkRed ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToDarkYellow() 공개 정적인 메소드

Changes the foreground of this string to dark yellow, and optionally forces the background of all characters to the given color.
public static ToDarkYellow ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToGray() 공개 정적인 메소드

Changes the foreground of this string to gray, and optionally forces the background of all characters to the given color.
public static ToGray ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToGreen() 공개 정적인 메소드

Changes the foreground of this string to green, and optionally forces the background of all characters to the given color.
public static ToGreen ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToMagenta() 공개 정적인 메소드

Changes the foreground of this string to magenta, and optionally forces the background of all characters to the given color.
public static ToMagenta ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToRed() 공개 정적인 메소드

Changes the foreground of this string to red, and optionally forces the background of all characters to the given color.
public static ToRed ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToWhite() 공개 정적인 메소드

Changes the foreground of this string to white, and optionally forces the background of all characters to the given color.
public static ToWhite ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString

ToYellow() 공개 정적인 메소드

Changes the foreground of this string to yellow, and optionally forces the background of all characters to the given color.
public static ToYellow ( this s, ConsoleColor bg = null ) : ConsoleString
s this the string to use to create the result
bg ConsoleColor The new background color for all characters or null to use the console's default
리턴 ConsoleString