예제 #1
0
        /// <summary>
        ///     Provide deafault string aligner with columnCount columns
        /// </summary>
        /// <param name="columnCount"></param>
        /// <returns></returns>
        public static StringAligner StringAligner(this int columnCount)
        {
            var stringAligner = new StringAligner();

            for (var i = 0; i < columnCount; i++)
            {
                stringAligner.AddFloatingColumn("  ");
            }
            return(stringAligner);
        }
예제 #2
0
 /// <summary>
 /// Provide deafault string aligner with columnCount columns
 /// </summary>
 /// <param name="columnCount"></param>
 /// <returns></returns>
 public static StringAligner StringAligner(this int columnCount)
 {
     var stringAligner = new StringAligner();
     for (var i = 0; i < columnCount; i++)
         stringAligner.AddFloatingColumn("  ");
     return stringAligner;
 }
예제 #3
0
 public static string Format(this string x, StringAligner aligner)
 {
     return(aligner.Format(x));
 }
예제 #4
0
 public static string Format(this string x, StringAligner aligner) { return aligner.Format(x); }