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

            text = text.Insert(index, color);
            return(this);
        }
コード例 #2
0
ファイル: StringExtensions.cs プロジェクト: Royathe/CIRCB
 public static string Colorize(this string text, MircColor color)
 {
     return(color + text + Color.Clear);
 }