PowerArgs.StringEx.ToGray C# (CSharp) 메소드

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
        public static ConsoleString ToGray(this string s, ConsoleColor? bg = null)
        {
            return new ConsoleString(s, ConsoleColor.Gray, bg);
        }