Beispiel #1
0
        /// <summary>
        /// Returns a combination of GetHash and LeftPadHash
        /// </summary>
        /// <param name="text">String to left-align</param>
        /// <param name="length">Final width of box</param>
        /// <returns></returns>
        public static string LeftBoxHashReturn(string text, int length)
        {
            var finalString = PrintUtils.GetHashReturn(length);

            finalString += PrintUtils.LeftPadHashReturn(text, length);
            finalString += PrintUtils.GetHashReturn(length);
            return(finalString);
        }