示例#1
0
        public PositionString Colorize(MircColor color, int offset = 0)
        {
            int index = text.LastIndexOf('|') + offset;

            text = text.Insert(index, color);
            return(this);
        }
示例#2
0
 public static string Colorize(this string text, MircColor color)
 {
     return(color + text + Color.Clear);
 }